static void AnimateEnvelopeRequest(int anim_mode, int action)
{
+ boolean game_just_ended = (game_status == GAME_MODE_PLAYING &&
+ checkGameEnded());
int delay_value_normal = request.step_delay;
int delay_value_fast = delay_value_normal / 2;
boolean ffwd_delay = (tape.playing && tape.fast_forward);
int dst_x, dst_y;
int xx, yy;
+ if (game_just_ended)
+ HandleGameActions();
+
setRequestPosition(&src_x, &src_y, FALSE);
setRequestPositionExt(&dst_x, &dst_y, width, height, FALSE);
int sx, sy;
int result;
- // when showing request dialog after game ended, deactivate game panel
- if (game_just_ended)
- game.panel.active = FALSE;
-
setRequestPosition(&sx, &sy, FALSE);
button_status = MB_RELEASED;
boolean Request(char *text, unsigned int req_state)
{
+ boolean game_just_ended = (game_status == GAME_MODE_PLAYING &&
+ checkGameEnded());
boolean overlay_enabled = GetOverlayEnabled();
boolean result;
+ // when showing request dialog after game ended, deactivate game panel
+ if (game_just_ended)
+ game.panel.active = FALSE;
+
game.request_active = TRUE;
SetOverlayEnabled(FALSE);