unsigned int old_door_state;
/* pause network game while waiting for request to answer */
- if (!standalone && game_status == PLAYING && req_state & REQUEST_WAIT_FOR)
+ if (network && game_status == PLAYING && req_state & REQUEST_WAIT_FOR)
SendToServer_PausePlaying();
old_door_state = GetDoorState();
}
if (req_state & REQ_ASK)
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4,OK_BUTTON_GFX_YPOS,
- DXSIZE,OK_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1,OK_BUTTON_YPOS);
+ {
+ DrawYesNoButton(BUTTON_OK, DB_INIT);
+ DrawYesNoButton(BUTTON_NO, DB_INIT);
+ }
else if (req_state & REQ_CONFIRM)
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4,CONFIRM_BUTTON_GFX_YPOS,
- DXSIZE,CONFIRM_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1,CONFIRM_BUTTON_YPOS);
+ {
+ DrawConfirmButton(BUTTON_CONFIRM, DB_INIT);
+ }
else if (req_state & REQ_PLAYER)
{
DrawPlayerButton(BUTTON_PLAYER_1, DB_INIT);
DrawPlayerButton(BUTTON_PLAYER_2, DB_INIT);
DrawPlayerButton(BUTTON_PLAYER_3, DB_INIT);
DrawPlayerButton(BUTTON_PLAYER_4, DB_INIT);
-
- /*
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4 + PLAYER_BUTTON_GFX_XPOS, PLAYER_BUTTON_GFX_YPOS,
- PLAYER_BUTTON_XSIZE,PLAYER_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1 + PLAYER_BUTTON_1_XPOS, PLAYER_BUTTON_1_YPOS);
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4 + PLAYER_BUTTON_GFX_XPOS, PLAYER_BUTTON_GFX_YPOS,
- PLAYER_BUTTON_XSIZE,PLAYER_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1 + PLAYER_BUTTON_1_XPOS, PLAYER_BUTTON_1_YPOS);
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4 + PLAYER_BUTTON_GFX_XPOS, PLAYER_BUTTON_GFX_YPOS,
- PLAYER_BUTTON_XSIZE,PLAYER_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1 + PLAYER_BUTTON_2_XPOS, PLAYER_BUTTON_2_YPOS);
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4 + PLAYER_BUTTON_GFX_XPOS, PLAYER_BUTTON_GFX_YPOS,
- PLAYER_BUTTON_XSIZE,PLAYER_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1 + PLAYER_BUTTON_3_XPOS, PLAYER_BUTTON_3_YPOS);
- XCopyArea(display,pix[PIX_DOOR],pix[PIX_DB_DOOR],gc,
- DOOR_GFX_PAGEX4 + PLAYER_BUTTON_GFX_XPOS, PLAYER_BUTTON_GFX_YPOS,
- PLAYER_BUTTON_XSIZE,PLAYER_BUTTON_YSIZE,
- DOOR_GFX_PAGEX1 + PLAYER_BUTTON_4_XPOS, PLAYER_BUTTON_4_YPOS);
- */
}
OpenDoor(DOOR_OPEN_1);
}
/* continue network game after request */
- if (!standalone && game_status == PLAYING && req_state & REQUEST_WAIT_FOR)
+ if (network && game_status == PLAYING && req_state & REQUEST_WAIT_FOR)
SendToServer_ContinuePlaying();
return(result);