Skip to content

Commit

Permalink
fix FIGH spawning glitch: id:2165807
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jul 25, 2017
1 parent 1632332 commit 5414170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/Simulation.cpp
Expand Up @@ -3256,7 +3256,7 @@ int Simulation::create_part(int p, int x, int y, int t, int v)
case PT_FIGH:
{
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)
{
parts[i].life = 100;
Expand Down

0 comments on commit 5414170

Please sign in to comment.