- Duke: Remove everyothertime global, we can just use PlayClock.

This commit is contained in:
Mitchell Richters 2023-03-18 22:18:34 +11:00
parent 792f977d46
commit 5b382ac2c6
5 changed files with 1 additions and 6 deletions

View file

@ -67,7 +67,6 @@ void GameInterface::Ticker()
if (ud.earthquaketime > 0) ud.earthquaketime--;
ud.cameraactor = nullptr;
everyothertime++;
// this must be done before the view is backed up.
for (int i = connecthead; i >= 0; i = connectpoint2[i])
@ -102,7 +101,7 @@ void GameInterface::Ticker()
fi.think();
if ((everyothertime & 1) == 0)
if (PlayClock & 4)
{
animatewalls();
movecyclers();

View file

@ -101,7 +101,6 @@ sectortype* mirrorsector[64]; // mirrors
walltype* mirrorwall[64];
int numplayersprites; // player management for some SEs.
player_orig po[MAXPLAYERS];
uint32_t everyothertime; // Global animation ticker helper.
// Redneck Rampage
int thunder_brightness;

View file

@ -129,7 +129,6 @@ extern int WindTime;
extern DAngle WindDir;
extern short fakebubba_spawn, mamaspawn_count, banjosound;
extern uint8_t enemysizecheat /*raat607*/, pistonsound, chickenphase /* raat605*/, RRRA_ExitedLevel, fogactive;
extern uint32_t everyothertime;
extern player_orig po[MAXPLAYERS];
extern int32_t g_cdTrack;

View file

@ -1135,7 +1135,6 @@ void enterlevel(MapRecord *mi, int gamemode)
}
resetmys();
everyothertime = 0;
global_random = 0;
ud.last_level = 1;

View file

@ -467,7 +467,6 @@ void GameInterface::SerializeGameState(FSerializer& arc)
FX_SetReverb(0);
show_shareware = 0;
everyothertime = 0;
FX_SetReverb(0);
resetlanepics();