- Blood: clear gHitInfo when starting a level.

This commit is contained in:
Christoph Oelckers 2023-05-14 09:05:39 +02:00
parent cf349fbd7d
commit 5d4e6696ca

View file

@ -270,6 +270,8 @@ void StartLevel(MapRecord* level, bool newgame)
STAT_NewLevel(currentLevel->fileName); STAT_NewLevel(currentLevel->fileName);
TITLE_InformName(currentLevel->name); TITLE_InformName(currentLevel->name);
wsrand(dbReadMapCRC(currentLevel->LabelName())); wsrand(dbReadMapCRC(currentLevel->LabelName()));
gHitInfo.hitSector = nullptr;
gHitInfo.hitWall = nullptr;
gKillMgr.Clear(); gKillMgr.Clear();
gSecretMgr.Clear(); gSecretMgr.Clear();
automapping = 1; automapping = 1;