This should fix PLNT lag just a little bit... (mostly after shooting through NEUT)

This commit is contained in:
cracker64 2012-07-07 23:15:37 -03:00
parent e806277000
commit 5f3c10a684

View File

@ -40,7 +40,7 @@ int update_PLNT(UPDATE_FUNC_ARGS) {
kill_part(r>>8); kill_part(r>>8);
parts[i].life = rand()%60 + 60; parts[i].life = rand()%60 + 60;
} }
else if ( ((r&0xFF)==PT_WOOD) && (1>rand()%20) && (abs(rx+ry)<=2) && (VINE_MODE || parts[i].tmp==1) ) else if (surround_space && ((r&0xFF)==PT_WOOD) && (1>rand()%20) && (abs(rx+ry)<=2) && (VINE_MODE || parts[i].tmp==1) )
{ {
int nnx = rand()%3 -1; int nnx = rand()%3 -1;
int nny = rand()%3 -1; int nny = rand()%3 -1;