X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=2970cfa911c0e6b5dcbe6a6eafb4ec1497993063;hb=2dfebdae62bb9c56904025e6bfb9f1f931745ac0;hp=84198618ee2a7baad4d783662277f6f49f6ad158;hpb=fe3196f07cb50ffb788c0073b82f94c26f93cfbf;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 84198618..2970cfa9 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2791,6 +2791,23 @@ boolean Request(char *text, unsigned int req_state) result = 0; } +#if 1 + + if (game_status == GAME_MODE_PLAYING && local_player->LevelSolved_GameEnd) + { + HandleGameActions(); + BackToFront(); + } + else + { + DoAnimation(); + + if (!PendingEvent()) /* delay only if no pending events */ + Delay(10); + } + +#else + DoAnimation(); #if 1 @@ -2799,6 +2816,8 @@ boolean Request(char *text, unsigned int req_state) #else /* don't eat all CPU time */ Delay(10); +#endif + #endif }