Skip to content

Commit

Permalink
- fixed: The frozen state was not reset when the global level variabl…
Browse files Browse the repository at this point in the history
…e was reset.
  • Loading branch information
coelckers committed Aug 9, 2019
1 parent 14a21c2 commit afe4a45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/g_level.cpp
Expand Up @@ -99,6 +99,8 @@ EXTERN_CVAR (Float, sv_aircontrol)
EXTERN_CVAR (Int, disableautosave)
EXTERN_CVAR (String, playerclass)

extern uint8_t globalfreeze, globalchangefreeze;

#define SNAP_ID MAKE_ID('s','n','A','p')
#define DSNP_ID MAKE_ID('d','s','N','p')
#define VIST_ID MAKE_ID('v','i','S','t')
Expand Down Expand Up @@ -470,6 +472,7 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
UnlatchCVars ();
G_VerifySkill();
UnlatchCVars ();
globalfreeze = globalchangefreeze = 0;
for (auto Level : AllLevels())
{
Level->Thinkers.DestroyThinkersInList(STAT_STATIC);
Expand Down Expand Up @@ -1585,6 +1588,7 @@ void FLevelLocals::Init()
flags2 = 0;
flags3 = 0;
ImpactDecalCount = 0;
frozenstate = 0;

info = FindLevelInfo (MapName);

Expand Down

0 comments on commit afe4a45

Please sign in to comment.