- Build (and games): Remove totalclocklock.

This commit is contained in:
Mitchell Richters 2020-08-26 07:59:28 +10:00
parent 576b13248e
commit 76b05dbcd6
5 changed files with 1 additions and 7 deletions

View file

@ -364,9 +364,7 @@ EXTERN struct validmode_t validmode[MAXVALIDMODES];
EXTERN int32_t Numsprites; EXTERN int32_t Numsprites;
EXTERN int16_t numsectors, numwalls; EXTERN int16_t numsectors, numwalls;
EXTERN int32_t display_mirror; EXTERN int32_t display_mirror;
// totalclocklock: the totalclock value that is backed up once on each EXTERN ClockTicks totalclock;
// drawrooms() and is used for animateoffs().
EXTERN ClockTicks totalclock, totalclocklock;
static inline int32_t BGetTime(void) { return (int32_t) totalclock; } static inline int32_t BGetTime(void) { return (int32_t) totalclock; }
EXTERN int32_t randomseed; EXTERN int32_t randomseed;

View file

@ -1286,7 +1286,6 @@ int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
globalhoriz = fix16_to_int(qglobalhoriz); globalhoriz = fix16_to_int(qglobalhoriz);
globalcursectnum = dacursectnum; globalcursectnum = dacursectnum;
totalclocklock = I_GetBuildTime();
if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange)) if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange))
dosetaspect(); dosetaspect();

View file

@ -30,7 +30,6 @@ BEGIN_PS_NS
void resettiming() void resettiming()
{ {
totalclock = 0; totalclock = 0;
// TODO totalclocklock = 0L;
} }
void doTileLoad(int i) void doTileLoad(int i)

View file

@ -481,7 +481,6 @@ void GameInterface::SerializeGameState(FSerializer& arc)
// Todo: move to backend // Todo: move to backend
("gameclock", gameclock) ("gameclock", gameclock)
("totalclocklock", totalclocklock)
("lockclock", lockclock) ("lockclock", lockclock)

View file

@ -316,7 +316,6 @@ void DrawMenuLevelScreen(void)
{ {
const int TITLE_PIC = 2324; const int TITLE_PIC = 2324;
twod->ClearScreen(); twod->ClearScreen();
totalclocklock = gameclock;
DrawTexture(twod, tileGetTexture(TITLE_PIC), 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, DTA_LegacyRenderStyle, STYLE_Normal, DrawTexture(twod, tileGetTexture(TITLE_PIC), 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, DTA_LegacyRenderStyle, STYLE_Normal,
DTA_Color, shadeToLight(20), TAG_DONE); DTA_Color, shadeToLight(20), TAG_DONE);