mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- Duke: Do not let the max kill counter underflow.
The entire thing looks broken anyway but this at least prevents the broken values from showing up in the statistics.
This commit is contained in:
parent
70f684d137
commit
cd5ff69c98
1 changed files with 1 additions and 1 deletions
|
@ -4639,7 +4639,7 @@ ACTOR_STATIC void G_MoveActors(void)
|
|||
|
||||
// JBF 20041129: a slimer eating another enemy really ought
|
||||
// to decrease the maximum kill count by one.
|
||||
if (sprite[pData[5]].extra > 0)
|
||||
if (sprite[pData[5]].extra > 0 && g_player[myconnectindex].ps->max_actors_killed > 0)
|
||||
g_player[myconnectindex].ps->max_actors_killed--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue