This should fix a bug with ifgotweaponce where the game had a rare chance of crashing and burning in cooperative

git-svn-id: https://svn.eduke32.com/eduke32@375 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-12-01 22:34:32 +00:00
parent 0d22a2a208
commit 36f69beeb6
3 changed files with 12 additions and 11 deletions

View file

@ -487,7 +487,7 @@ void getpackets(void)
{ {
lastpackettime = totalclock; lastpackettime = totalclock;
#ifdef TESTNET #ifdef TESTNET
initprintf("RECEIVED PACKET: type: %d : len %d\n", packbuf[0], packbufleng); initprintf("RECEIVED PACKET: type: %d : len %d\n", packbuf[0], packbufleng);
#endif #endif
switch (packbuf[0]) switch (packbuf[0])
{ {
@ -914,7 +914,7 @@ void getpackets(void)
case 250: case 250:
if (playerreadyflag[other] == 0) if (playerreadyflag[other] == 0)
initprintf("Player %ld is ready\n", other); initprintf("Player %ld is ready\n", other);
playerreadyflag[other]++; playerreadyflag[other]++;
break; break;
case 255: case 255:
@ -3439,12 +3439,12 @@ void displayrest(long smoothratio)
if (ud.coords) if (ud.coords)
coords(screenpeek); coords(screenpeek);
#if defined(POLYMOST) && defined(USE_OPENGL) #if defined(POLYMOST) && defined(USE_OPENGL)
{ {
extern char mdpause; extern char mdpause;
mdpause = ud.pause_on; mdpause = ud.pause_on;
} }
#endif #endif
tics(); tics();

View file

@ -3840,6 +3840,7 @@ char parse(void)
ps[g_p].weaprecs[ps[g_p].weapreccnt++] = g_sp->picnum; ps[g_p].weaprecs[ps[g_p].weapreccnt++] = g_sp->picnum;
parseifelse(g_sp->owner == g_i); parseifelse(g_sp->owner == g_i);
} }
else parseifelse(0);
} }
else parseifelse(0); else parseifelse(0);
break; break;