mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 20:04:01 +02:00
fix FIGH spawning glitch: id:2165807
This commit is contained in:
@@ -3256,7 +3256,7 @@ int Simulation::create_part(int p, int x, int y, int t, int v)
|
|||||||
case PT_FIGH:
|
case PT_FIGH:
|
||||||
{
|
{
|
||||||
unsigned char fcount = 0;
|
unsigned char fcount = 0;
|
||||||
while (fcount < MAX_FIGHTERS && fcount < (fighcount+1) && fighters[fcount].spwn==1) fcount++;
|
while (fcount < MAX_FIGHTERS && fighters[fcount].spwn==1) fcount++;
|
||||||
if (fcount < MAX_FIGHTERS && fighters[fcount].spwn == 0)
|
if (fcount < MAX_FIGHTERS && fighters[fcount].spwn == 0)
|
||||||
{
|
{
|
||||||
parts[i].life = 100;
|
parts[i].life = 100;
|
||||||
|
Reference in New Issue
Block a user