Skip to content
Permalink
Browse files

- fixed: The frozen state was not reset when the global level variabl…

…e was reset.
  • Loading branch information...
coelckers committed Aug 9, 2019
1 parent 14a21c2 commit afe4a45a76cdff68bd4ddec735e146f9333ca3ce
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/g_level.cpp
@@ -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')
@@ -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);
@@ -1585,6 +1588,7 @@ void FLevelLocals::Init()
flags2 = 0;
flags3 = 0;
ImpactDecalCount = 0;
frozenstate = 0;

info = FindLevelInfo (MapName);

0 comments on commit afe4a45

Please sign in to comment.
You can’t perform that action at this time.