X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=d73efcfba0f89ab7495599b0eba0636e1777d1e9;hb=fc75248be965e2d68ebc16af009fefb30e9ac370;hp=fd1bdc53d936c6a821c8639b66a331d09ccd6750;hpb=90cd4dc88df3f891ecaa0ee9b9010fe432154503;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index fd1bdc53..d73efcfb 100644 --- a/src/game.c +++ b/src/game.c @@ -9880,11 +9880,14 @@ static void ExecuteCustomElementAction(int x, int y, int element, int page) // ---------- player actions --------------------------------------------- case CA_MOVE_PLAYER: + case CA_MOVE_PLAYER_NEW: { // automatically move to the next field in specified direction for (i = 0; i < MAX_PLAYERS; i++) if (trigger_player_bits & (1 << i)) - stored_player[i].programmed_action = action_arg_direction; + if (action_type == CA_MOVE_PLAYER || + stored_player[i].MovPos == 0) + stored_player[i].programmed_action = action_arg_direction; break; }