- SW: Change smoothratio from int to double for storing returned result from CalcSmoothRatio() with full precision.

This commit is contained in:
Mitchell Richters 2020-08-18 16:27:08 +10:00
parent e8faca52a2
commit da2b1347ef
2 changed files with 3 additions and 2 deletions

View file

@ -2205,8 +2205,9 @@ extern USER puser[MAX_SW_PLAYERS_REG];
// //
/////////////////////////// ///////////////////////////
extern int ototalclock, save_totalclock, gotlastpacketclock,smoothratio; extern int ototalclock, save_totalclock, gotlastpacketclock;
extern SWBOOL ready2send; extern SWBOOL ready2send;
extern double smoothratio;
// local copy of variables updated by faketimerhandler // local copy of variables updated by faketimerhandler
extern int locselectedgun; extern int locselectedgun;

View file

@ -97,8 +97,8 @@ void GetSyncInfoFromPacket(uint8_t *packbuf, int packbufleng, int *j, int otherc
// when you set totalclock to 0 also set this one // when you set totalclock to 0 also set this one
int ototalclock; int ototalclock;
int smoothratio;
int save_totalclock; int save_totalclock;
double smoothratio;
// must start out as 0 // must start out as 0