X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools.c;h=95f12fc1d5ca157f11fbfea1a3f9ee002e725fc0;hb=bdc7198372648cdde60eb28495569700b63592d5;hp=5cbf8053324b2f9ab255e5739cc374ef007eab1c;hpb=f6477461020eebe6489d4997ac973c985d82e4aa;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 5cbf8053..95f12fc1 100644 --- a/src/tools.c +++ b/src/tools.c @@ -3166,9 +3166,17 @@ void ShowEnvelopeRequest(char *text, unsigned int req_state, int action) /* (important: after "BackToFront()", but before "SetDrawtoField()") */ game_status = last_game_status; /* restore current game status */ +#if 1 + if (action == ACTION_CLOSING && + game_status == GAME_MODE_PLAYING && + level.game_engine_type == GAME_ENGINE_TYPE_RND) + SetDrawtoField(DRAW_BUFFERED); +#else if (game_status == GAME_MODE_PLAYING && level.game_engine_type == GAME_ENGINE_TYPE_RND) SetDrawtoField(DRAW_BUFFERED); +#endif + #else BackToFront(); #endif