projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981013-1
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 1327e4e58acc2a057f47c1e544e61cb41f72250b..7efa122be50395c7bc392b5b28c426b8bd406400 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-23,6
+23,7
@@
#include "buttons.h"
#include "joystick.h"
#include "cartoons.h"
#include "buttons.h"
#include "joystick.h"
#include "cartoons.h"
+#include "network.h"
#include <math.h>
#include <math.h>
@@
-1307,6
+1308,10
@@
BOOL Request(char *text, unsigned int req_state)
int mx,my, ty, result = -1;
unsigned int old_door_state;
int mx,my, ty, result = -1;
unsigned int old_door_state;
+ /* pause network game while waiting for request to answer */
+ if (network && game_status == PLAYING && req_state & REQUEST_WAIT_FOR)
+ SendToServer_PausePlaying();
+
old_door_state = GetDoorState();
CloseDoor(DOOR_CLOSE_1);
old_door_state = GetDoorState();
CloseDoor(DOOR_CLOSE_1);
@@
-1390,9
+1395,7
@@
BOOL Request(char *text, unsigned int req_state)
OpenDoor(DOOR_OPEN_1);
ClearEventQueue();
OpenDoor(DOOR_OPEN_1);
ClearEventQueue();
- if (!(req_state & REQ_ASK) &&
- !(req_state & REQ_CONFIRM) &&
- !(req_state & REQ_PLAYER))
+ if (!(req_state & REQUEST_WAIT_FOR))
return(FALSE);
if (game_status != MAINMENU)
return(FALSE);
if (game_status != MAINMENU)
@@
-1531,6
+1534,10
@@
BOOL Request(char *text, unsigned int req_state)
}
}
}
}
+ /* continue network game after request */
+ if (network && game_status == PLAYING && req_state & REQUEST_WAIT_FOR)
+ SendToServer_ContinuePlaying();
+
return(result);
}
return(result);
}