mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
- dead data removal in network.cpp and the player struct.
This commit is contained in:
parent
b3d4bab4dd
commit
4d5e2f5bda
3 changed files with 1 additions and 28 deletions
|
@ -922,13 +922,6 @@ struct PLAYERstruct
|
|||
|
||||
|
||||
int movefifoend;
|
||||
int myminlag;
|
||||
int syncvalhead;
|
||||
#define MAXSYNCBYTES 16
|
||||
// TENSW: on really bad network connections, the sync FIFO queue can overflow if it is the
|
||||
// same size as the move fifo.
|
||||
#define SYNCFIFOSIZ 1024
|
||||
uint8_t syncval[SYNCFIFOSIZ][MAXSYNCBYTES];
|
||||
|
||||
// must start out as 0
|
||||
int playerreadyflag;
|
||||
|
|
|
@ -65,14 +65,7 @@ SWBOOL CommEnabled = FALSE;
|
|||
uint8_t CommPlayers = 0;
|
||||
int movefifoplc, movefifosendplc; //, movefifoend[MAX_SW_PLAYERS];
|
||||
|
||||
//int myminlag[MAX_SW_PLAYERS];
|
||||
int mymaxlag, otherminlag, bufferjitter = 1;
|
||||
|
||||
// GAME.C sync state variables
|
||||
uint8_t syncstat[MAXSYNCBYTES];
|
||||
//int syncvalhead[MAX_SW_PLAYERS];
|
||||
int syncvaltail, syncvaltottail;
|
||||
void GetSyncInfoFromPacket(uint8_t *packbuf, int packbufleng, int *j, int otherconnectindex);
|
||||
int bufferjitter = 1;
|
||||
|
||||
int ogameclock;
|
||||
double smoothratio;
|
||||
|
@ -115,23 +108,11 @@ InitNetVars(void)
|
|||
{
|
||||
pp = Player + pnum;
|
||||
pp->movefifoend = 0;
|
||||
Player[pnum].syncvalhead = 0;
|
||||
memset(pp->inputfifo,0,sizeof(pp->inputfifo));
|
||||
}
|
||||
movefifoplc = 0;
|
||||
movefifosendplc = 0;
|
||||
syncvaltail = 0;
|
||||
syncvaltottail = 0;
|
||||
predictmovefifoplc = 0;
|
||||
|
||||
memset(&syncstat, 0, sizeof(syncstat));
|
||||
|
||||
TRAVERSE_CONNECT(pnum)
|
||||
{
|
||||
Player[pnum].myminlag = 0;
|
||||
}
|
||||
|
||||
otherminlag = mymaxlag = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -29,7 +29,6 @@ BEGIN_SW_NS
|
|||
#define SYNC_TEST 0
|
||||
#define MAXSYNCBYTES 16
|
||||
|
||||
extern uint8_t syncstat[MAXSYNCBYTES];
|
||||
extern SWBOOL PredictionOn;
|
||||
extern PLAYER PredictPlayer;
|
||||
extern PLAYERp ppp;
|
||||
|
|
Loading…
Reference in a new issue