X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_em%2Finput.c;h=76932c54d25760d82cca3a4b38f79398d8ad4c2a;hb=cc5a0e1eae262a928c1a0f451c6ce401f52d8828;hp=cc703ba96cb4ab622f7bec3c2e7f7e5a1dd1b5f1;hpb=b6764658a537d18821afe606350e26d95b6daff6;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index cc703ba9..76932c54 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -6,7 +6,7 @@ #include "main_em.h" -unsigned long RandomEM; +unsigned int RandomEM; struct LEVEL lev; struct PLAYER ply[MAX_PLAYERS]; @@ -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 */