update comment

This commit is contained in:
jacob1 2018-04-02 23:04:33 -04:00
parent e5b0a2a401
commit cde24af43f

View File

@ -50,7 +50,7 @@ int Element_MERC::update(UPDATE_FUNC_ARGS)
int r, rx, ry, trade, np;
// Max number of particles that can be condensed into one
const int absorbScale = 10000;
// Integer overflow prevention
// Obscure division by 0 fix
if (parts[i].temp + 1 == 0)
parts[i].temp = 0;
int maxtmp = ((absorbScale/(parts[i].temp + 1))-1);