mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Reset level name when game is shut down
This commit is contained in:
parent
f851c29498
commit
03a0546140
@ -110,6 +110,9 @@ FORCEINLINE void CHostState::FrameUpdate(CHostState* rcx, void* rdx, float time)
|
||||
case HostStates_t::HS_GAME_SHUTDOWN:
|
||||
{
|
||||
DevMsg(eDLL_T::ENGINE, "%s - Shutdown host game\n", "CHostState::FrameUpdate");
|
||||
if (g_pHostState->m_bActiveGame) {
|
||||
g_pHostState->ResetLevelName();
|
||||
}
|
||||
g_bLevelResourceInitialized = false;
|
||||
CHostState_State_GameShutDown(g_pHostState);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user