X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=cf8b9de6de57acff8324b4cc29edf6c0235953d2;hb=8848a001bf529a3e06710b80b928094e48f25aa8;hp=cc703ba96cb4ab622f7bec3c2e7f7e5a1dd1b5f1;hpb=ac86d841daa4ecafff3128110a1db109e03fb355;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index cc703ba9..cf8b9de6 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -74,6 +74,7 @@ void InitGameEngine_EM() void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) { int i; + boolean player_is_dropping = FALSE; #if 0 static int foo = -1; @@ -91,6 +92,7 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) printf("::: %05d: %lu, %d\n", FrameCounter, RandomEM, frame); #endif +#if 0 game_animscreen(); #if 1 @@ -99,6 +101,7 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) #endif blitscreen(); +#endif #endif RandomEM = RandomEM * 129 + 1; @@ -124,6 +127,28 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) if (!warp_mode) /* do not redraw values in warp mode */ DrawGameDoorValues_EM(); } + + for (i = 0; i < MAX_PLAYERS; i++) + if (ply[i].joy_drop && + ply[i].dynamite && + ply[i].dynamite_cnt > 0 && + ply[i].dynamite_cnt < 5) + player_is_dropping = TRUE; + + CheckSingleStepMode_EM(action, frame, game_em.any_player_moving, + player_is_dropping); + +#if 1 + game_animscreen(); + +#if 1 +#if 0 + SyncDisplay(); +#endif + + blitscreen(); +#endif +#endif } /* read input device for players */