X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=7418f0b6a55547757d60334fb3a3089733dbd348;hb=ceb7ded99fc9cc9519adeea07808a344678c196e;hp=62b25f550034231bc1962eef11b26ffdf16cdd62;hpb=ec36fe263402351ac67b70400f11096a044365fe;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index 62b25f55..7418f0b6 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -8,7 +8,7 @@ #include "level.h" -unsigned long Random; +unsigned long RandomEM; struct PLAYER ply1; struct PLAYER ply2; @@ -29,7 +29,7 @@ void game_init_vars(void) { int x, y; - Random = 1684108901; + RandomEM = 1684108901; for (y = 0; y < HEIGHT; y++) for (x = 0; x < WIDTH; x++) @@ -85,7 +85,7 @@ void GameActions_EM(byte action) game_animscreen(); - Random = Random * 129 + 1; + RandomEM = RandomEM * 129 + 1; frame = (frame - 1) & 7; @@ -107,6 +107,19 @@ void GameActions_EM(byte action) if (game_frame_delay_value > 0) /* do not redraw values in warp mode */ DrawGameDoorValues_EM(); } + +#if 0 + if (lev.time_initial == 0) + lev.time++; + else if (lev.time > 0) + lev.time--; +#endif + +#if 0 + if (lev.time_initial > 0 && + lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0 && setup.time_limit) + play_sound(-1, -1, SAMPLE_time); +#endif }