X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=1d1c4ddab74dac7b8b66da271fc30c613a60ee7c;hp=671e2d89348b41c53c17935a534c29b757104735;hb=0a87fde47bcff35f196024766f8d0d00319a28d1;hpb=dbdefdcdfa0fa58296160ffc6b72fea58bea5c75 diff --git a/src/tools.c b/src/tools.c index 671e2d89..1d1c4dda 100644 --- a/src/tools.c +++ b/src/tools.c @@ -11,7 +11,6 @@ * tools.c * ***********************************************************/ -#include #include #ifdef __FreeBSD__ @@ -90,11 +89,13 @@ void BackToFront() this could mean that we have to wait for the graphics to complete, although we could go on doing calculations for the next frame */ - XSync(display,FALSE); + XSync(display, FALSE); + /* #ifdef MSDOS wait_for_vsync = TRUE; #endif + */ if (redraw_mask & REDRAW_ALL) { @@ -1339,11 +1340,13 @@ boolean Request(char *text, unsigned int req_state) int mx, my, ty, result = -1; unsigned int old_door_state; +#ifndef MSDOS /* pause network game while waiting for request to answer */ if (options.network && game_status == PLAYING && req_state & REQUEST_WAIT_FOR) SendToServer_PausePlaying(); +#endif old_door_state = GetDoorState(); @@ -1545,11 +1548,13 @@ boolean Request(char *text, unsigned int req_state) } } +#ifndef MSDOS /* continue network game after request */ if (options.network && game_status == PLAYING && req_state & REQUEST_WAIT_FOR) SendToServer_ContinuePlaying(); +#endif return(result); }