return result;
}
-static void DoRequestBefore(unsigned int req_state)
+static void DoRequestBefore(void)
{
if (game_status == GAME_MODE_PLAYING)
BlitScreenToBitmap(backbuffer);
// pause network game while waiting for request to answer
if (network.enabled &&
game_status == GAME_MODE_PLAYING &&
- !game.all_players_gone &&
- req_state & REQUEST_WAIT_FOR_INPUT)
+ !game.all_players_gone)
SendToServer_PausePlaying();
// simulate releasing mouse button over last gadget, if still pressed
UnmapAllGadgets();
}
-static void DoRequestAfter(unsigned int req_state)
+static void DoRequestAfter(void)
{
RemapAllGadgets();
// continue network game after request
if (network.enabled &&
game_status == GAME_MODE_PLAYING &&
- !game.all_players_gone &&
- req_state & REQUEST_WAIT_FOR_INPUT)
+ !game.all_players_gone)
SendToServer_ContinuePlaying();
// restore deactivated drawing when quick-loading level tape recording
font_nr = FONT_TEXT_1;
}
- DoRequestBefore(req_state);
+ DoRequestBefore();
// draw released gadget before proceeding
// BackToFront();
OpenDoor(DOOR_OPEN_1);
- if (!(req_state & REQUEST_WAIT_FOR_INPUT))
- {
- if (game_status == GAME_MODE_PLAYING)
- {
- SetPanelBackground();
- SetDrawBackgroundMask(REDRAW_DOOR_1);
- }
- else
- {
- SetDrawBackgroundMask(REDRAW_FIELD);
- }
-
- return FALSE;
- }
-
SetDrawBackgroundMask(REDRAW_FIELD | REDRAW_DOOR_1);
// ---------- handle request buttons ----------
OpenDoor(DOOR_OPEN_1 | DOOR_COPY_BACK);
}
- DoRequestAfter(req_state);
+ DoRequestAfter();
return result;
}
int draw_buffer_last = GetDrawtoField();
int result;
- DoRequestBefore(req_state);
+ DoRequestBefore();
DrawEnvelopeRequest(text, req_state);
ShowEnvelopeRequest(text, req_state, ACTION_OPENING);
- if (!(req_state & REQUEST_WAIT_FOR_INPUT))
- {
- if (game_status == GAME_MODE_PLAYING)
- {
- SetPanelBackground();
- SetDrawBackgroundMask(REDRAW_DOOR_1);
- }
- else
- {
- SetDrawBackgroundMask(REDRAW_FIELD);
- }
-
- return FALSE;
- }
-
SetDrawBackgroundMask(REDRAW_FIELD | REDRAW_DOOR_1);
// ---------- handle request buttons ----------
ShowEnvelopeRequest(text, req_state, ACTION_CLOSING);
- DoRequestAfter(req_state);
+ DoRequestAfter();
return result;
}