projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed buggy behaviour when only one player needed to solve a level
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 70b9b811d2db47fc18b9944db43215e9b61ff74a..03dca6bb761c5c4767a3c5236aeab6beac9f9742 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-13433,6
+13433,10
@@
void ExitPlayer(struct PlayerInfo *player)
if (local_player->players_still_needed > 0)
local_player->players_still_needed--;
if (local_player->players_still_needed > 0)
local_player->players_still_needed--;
+
+ /* also set if some players not yet gone, but not needed to solve level */
+ if (local_player->players_still_needed == 0)
+ AllPlayersGone = TRUE;
}
static void setFieldForSnapping(int x, int y, int element, int direction)
}
static void setFieldForSnapping(int x, int y, int element, int direction)