From: Holger Schemel Date: Sun, 5 May 2002 21:29:12 +0000 (+0200) Subject: rnd-20020505-2-src X-Git-Tag: 2.1.0^2~36 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=fd38efeb44f3bb6bfaa71351c202fd4fe78c5d16;p=rocksndiamonds.git rnd-20020505-2-src --- diff --git a/src/game.c b/src/game.c index f898c8ae..e83bf4a0 100644 --- a/src/game.c +++ b/src/game.c @@ -450,6 +450,14 @@ static void InitField(int x, int y, boolean init_game) void DrawGameDoorValues() { + int i, j; + + for (i=0; igems_still_needed, 3), FS_SMALL, FC_YELLOW); DrawText(DX + XX_DYNAMITE, DY + YY_DYNAMITE, @@ -820,18 +828,7 @@ void InitGame() DX + XX_LEVEL - 1, DY + YY_LEVEL + 1); } -#if 1 DrawGameDoorValues(); -#else - DrawText(DX + XX_EMERALDS, DY + YY_EMERALDS, - int2str(local_player->gems_still_needed, 3), FS_SMALL, FC_YELLOW); - DrawText(DX + XX_DYNAMITE, DY + YY_DYNAMITE, - int2str(local_player->dynamite, 3), FS_SMALL, FC_YELLOW); - DrawText(DX + XX_SCORE, DY + YY_SCORE, - int2str(local_player->score, 5), FS_SMALL, FC_YELLOW); - DrawText(DX + XX_TIME, DY + YY_TIME, - int2str(TimeLeft, 3), FS_SMALL, FC_YELLOW); -#endif UnmapGameButtons(); UnmapTapeButtons(); @@ -1005,7 +1002,7 @@ void GameWon() PlaySoundExt(SND_GAME_LEVELTIME_BONUS, PSND_MAX_VOLUME, PSND_MAX_RIGHT, PSND_LOOP); - while(TimeLeft > 0) + while (TimeLeft > 0) { if (!tape.playing && !setup.sound_loops) PlaySoundStereo(SND_GAME_LEVELTIME_BONUS, PSND_MAX_RIGHT); @@ -1031,7 +1028,7 @@ void GameWon() PlaySoundExt(SND_GAME_LEVELTIME_BONUS, PSND_MAX_VOLUME, PSND_MAX_RIGHT, PSND_LOOP); - while(TimePlayed < 999) + while (TimePlayed < 999) { if (!tape.playing && !setup.sound_loops) PlaySoundStereo(SND_GAME_LEVELTIME_BONUS, PSND_MAX_RIGHT); @@ -4835,7 +4832,7 @@ void GameActions() for (i=0; i