X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_1.c;fp=src%2Fgame_em%2Fsynchro_1.c;h=147da4aff72b564899e3155701d3ce52b8e03e7a;hb=3e71d06e9a97be7bb8c50c76717d08e5c46e0cc8;hp=058c79e3caedb4ebd3e7d40768d1bc0025300f9a;hpb=5c717898f717007b885f86e0d02f10d2a0306237;p=rocksndiamonds.git diff --git a/src/game_em/synchro_1.c b/src/game_em/synchro_1.c index 058c79e3..147da4af 100644 --- a/src/game_em/synchro_1.c +++ b/src/game_em/synchro_1.c @@ -23,6 +23,8 @@ void synchro_1(void) int start_check_nr; int i; + game_em.any_player_moving = FALSE; + /* must test for death and actually kill separately */ for (i = 0; i < MAX_PLAYERS; i++) @@ -584,6 +586,10 @@ static void check_player(struct PLAYER *ply) ply->last_move_dir = (dx < 0 ? MV_LEFT : MV_RIGHT); else if (oldy != ply->y) ply->last_move_dir = (dy < 0 ? MV_UP : MV_DOWN); + + game_em.any_player_moving = TRUE; + game_em.last_moving_player = ply->num; + game_em.last_player_direction[ply->num] = ply->last_move_dir; } } else /* player wants to snap */