update comment
This commit is contained in:
parent
e5b0a2a401
commit
cde24af43f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user