fix photon causing infinite sparks

This commit is contained in:
Cracker64 2011-01-14 21:23:23 -05:00
parent e33fb40e2d
commit 2d79fa5cfe

View File

@ -34,7 +34,9 @@ static int pn_junction_sprk(int x, int y, int pt)
r >>= 8; r >>= 8;
if(parts[r].type != pt) if(parts[r].type != pt)
return 0; return 0;
if(parts[r].life != 0)
return 0;
parts[r].ctype = pt; parts[r].ctype = pt;
parts[r].type = PT_SPRK; parts[r].type = PT_SPRK;
parts[r].life = 4; parts[r].life = 4;