- cleaned out some leftover network variables

This commit is contained in:
Christoph Oelckers 2020-09-04 20:48:29 +02:00
parent 3eef0db6f6
commit b8d2d626ca
5 changed files with 1 additions and 17 deletions

View file

@ -203,8 +203,6 @@ void GameInterface::StartGame(FNewGameStartup& gs)
// always assumed that a demo is playing // always assumed that a demo is playing
ready2send = 0;
MapRecord* map; MapRecord* map;
if (gs.Episode >= 1) if (gs.Episode >= 1)
map = FindMapByLevelNum(5); map = FindMapByLevelNum(5);

View file

@ -144,7 +144,6 @@ SWBOOL ExitLevel = false;
int OrigCommPlayers=0; int OrigCommPlayers=0;
extern uint8_t CommPlayers; extern uint8_t CommPlayers;
extern SWBOOL CommEnabled; extern SWBOOL CommEnabled;
extern int bufferjitter;
SWBOOL CameraTestMode = false; SWBOOL CameraTestMode = false;
@ -473,7 +472,7 @@ void InitRunLevel(void)
// send packets with player info // send packets with player info
InitNetPlayerOptions(); InitNetPlayerOptions();
// Initialize Game part of network code (When ready2send != 0) // Initialize Game part of network code
InitNetVars(); InitNetVars();
if (currentLevel) if (currentLevel)

View file

@ -2047,13 +2047,7 @@ extern USER puser[MAX_SW_PLAYERS_REG];
// //
/////////////////////////// ///////////////////////////
extern int gotlastpacketclock;
extern SWBOOL ready2send;
extern double smoothratio; extern double smoothratio;
// local copy of variables updated by faketimerhandler
extern int locselectedgun;
extern SWBOOL MoveSkip4, MoveSkip2, MoveSkip8; extern SWBOOL MoveSkip4, MoveSkip2, MoveSkip8;
#define MASTER_SWITCHING 1 #define MASTER_SWITCHING 1

View file

@ -56,15 +56,9 @@ gNET gNet;
//Local multiplayer variables //Local multiplayer variables
// should move this to a local scope of faketimerhandler - do it when able to test // should move this to a local scope of faketimerhandler - do it when able to test
//InputPacket oloc;
SWBOOL ready2send = 0;
SWBOOL CommEnabled = FALSE; SWBOOL CommEnabled = FALSE;
uint8_t CommPlayers = 0; uint8_t CommPlayers = 0;
int bufferjitter = 1;
double smoothratio; double smoothratio;
// must start out as 0 // must start out as 0

View file

@ -1089,7 +1089,6 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
DoPlayerNightVisionPalette(Player+myconnectindex); DoPlayerNightVisionPalette(Player+myconnectindex);
SavegameLoaded = TRUE; SavegameLoaded = TRUE;
ready2send = 1;
return true; return true;
} }