mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Duke: Remove everyothertime
global, we can just use PlayClock
.
This commit is contained in:
parent
792f977d46
commit
5b382ac2c6
5 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1135,7 +1135,6 @@ void enterlevel(MapRecord *mi, int gamemode)
|
|||
}
|
||||
resetmys();
|
||||
|
||||
everyothertime = 0;
|
||||
global_random = 0;
|
||||
|
||||
ud.last_level = 1;
|
||||
|
|
|
@ -467,7 +467,6 @@ void GameInterface::SerializeGameState(FSerializer& arc)
|
|||
|
||||
FX_SetReverb(0);
|
||||
show_shareware = 0;
|
||||
everyothertime = 0;
|
||||
|
||||
FX_SetReverb(0);
|
||||
resetlanepics();
|
||||
|
|
Loading…
Reference in a new issue