- Added two new net commands: DEM_WIPEON and DEM_WIPEOFF. They keep track of
when a player is going through a screen wipe and act like a pause, so the game doesn't run several tics afterward to catch up with it. SVN r485 (trunk)
This commit is contained in:
parent
01cd91fd9e
commit
ecc45d5d6e
8 changed files with 34 additions and 11 deletions
|
|
@ -602,6 +602,7 @@ void PlayerIsGone (int netnode, int netconsole)
|
|||
nodeingame[netnode] = false;
|
||||
playeringame[netconsole] = false;
|
||||
nodejustleft[netnode] = false;
|
||||
playerswiping &= ~(1 << netconsole);
|
||||
|
||||
if (deathmatch)
|
||||
{
|
||||
|
|
@ -2293,6 +2294,14 @@ void Net_DoCommand (int type, BYTE **stream, int player)
|
|||
}
|
||||
break;
|
||||
|
||||
case DEM_WIPEON:
|
||||
playerswiping |= 1 << player;
|
||||
break;
|
||||
|
||||
case DEM_WIPEOFF:
|
||||
playerswiping &= ~(1 << player);
|
||||
break;
|
||||
|
||||
default:
|
||||
I_Error ("Unknown net command: %d", type);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue