fix photon causing infinite sparks
This commit is contained in:
parent
e33fb40e2d
commit
2d79fa5cfe
@ -34,6 +34,8 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user