mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
SW: This is a better place for a slave which quits to set QuitFlag
This commit is contained in:
parent
d50410f06b
commit
6d9c657b11
1 changed files with 5 additions and 1 deletions
|
@ -74,6 +74,7 @@ extern SWBOOL PauseKeySet;
|
|||
|
||||
gNET gNet;
|
||||
extern short PlayerQuitMenuLevel;
|
||||
extern SWBOOL QuitFlag;
|
||||
|
||||
#define TIMERUPDATESIZ 32
|
||||
|
||||
|
@ -688,7 +689,6 @@ SWBOOL MyCommPlayerQuit(void)
|
|||
PLAYERp pp;
|
||||
short i;
|
||||
short prev_player = 0;
|
||||
extern SWBOOL QuitFlag;
|
||||
short found = FALSE;
|
||||
short quit_player_index = 0;
|
||||
|
||||
|
@ -980,6 +980,10 @@ faketimerhandler(void)
|
|||
|
||||
memset(&AveragePacket, 0, sizeof(AveragePacket));
|
||||
|
||||
// Slave won't receive the quit bit back from the master, so handle it separately
|
||||
if (TEST(loc.bits, 1 << SK_QUIT_GAME) && !NetBroadcastMode && (myconnectindex != connecthead))
|
||||
QuitFlag = TRUE;
|
||||
|
||||
pp->inputfifo[Player[myconnectindex].movefifoend & (MOVEFIFOSIZ - 1)] = loc;
|
||||
pp->movefifoend++;
|
||||
Bmemset(&loc, 0, sizeof(loc));
|
||||
|
|
Loading…
Reference in a new issue