Less dependence on particle order for GOLD fast electricity conduction

This commit is contained in:
jacksonmj 2013-04-27 13:54:16 +01:00
parent 828569415f
commit 9bc939d422

View File

@ -76,7 +76,7 @@ int Element_GOLD::update(UPDATE_FUNC_ARGS)
if ((!rx != !ry) && BOUNDS_CHECK) {
r = pmap[y+ry][x+rx];
if(!r) continue;
if((r&0xFF)==PT_SPRK && parts[r>>8].life)
if((r&0xFF)==PT_SPRK && parts[r>>8].life && parts[r>>8].life<4)
{
parts[i].life = 4;
parts[i].type = PT_SPRK;