X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=308706437401106672e803f8ad683fae9b7020fa;hb=14d7691c65ca4a466ce9b9448153e8fbe8351a81;hp=7447f4b1901d4ba642bc4841898c1eb3e3865dfa;hpb=359536f46007d1b9148bed9c529056faa91b8aab;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index 7447f4b1..30870643 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]; @@ -64,44 +64,12 @@ void InitGameEngine_EM() game_initscreen(); game_animscreen(); - -#if 0 - /* blit playfield from scroll buffer to normal back buffer for fading in */ - BlitScreenToBitmap_EM(backbuffer); -#endif } void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) { int i; - -#if 0 - static int foo = -1; - - if (action[0] == 0 && foo != 0) - printf("KEY RELEASED @ %05d\n", FrameCounter); - - foo = action[0]; -#endif - -#if 0 -#if 1 - if (FrameCounter % 10 == 0) -#endif - printf("::: %05d: %lu, %d\n", FrameCounter, RandomEM, frame); -#endif - -#if 0 - game_animscreen(); - -#if 1 -#if 0 - SyncDisplay(); -#endif - - blitscreen(); -#endif -#endif + boolean player_is_dropping = FALSE; RandomEM = RandomEM * 129 + 1; @@ -127,19 +95,19 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) DrawGameDoorValues_EM(); } - CheckSingleStepMode_EM(action, frame, game_em.any_player_moving); + 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; -#if 1 - game_animscreen(); + CheckSingleStepMode_EM(action, frame, game_em.any_player_moving, + player_is_dropping); -#if 1 -#if 0 - SyncDisplay(); -#endif + game_animscreen(); blitscreen(); -#endif -#endif } /* read input device for players */