mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Reset idle name on shutdown
This commit is contained in:
parent
d32a4f2df0
commit
9dd49af1dc
@ -321,6 +321,7 @@ FORCEINLINE void CHostState::GameShutDown(void)
|
||||
g_pServerGameDLL->GameShutdown();
|
||||
#endif // !CLIENT_DLL
|
||||
m_bActiveGame = 0;
|
||||
ResetLevelName();
|
||||
}
|
||||
}
|
||||
|
||||
@ -424,9 +425,9 @@ FORCEINLINE void CHostState::State_ChangeLevelMP(void)
|
||||
FORCEINLINE void CHostState::ResetLevelName(void)
|
||||
{
|
||||
#ifdef DEDICATED
|
||||
const char* szNoMap = "server_idle";
|
||||
static const char* szNoMap = "server_idle";
|
||||
#else // DEDICATED
|
||||
const char* szNoMap = "main_menu";
|
||||
static const char* szNoMap = "main_menu";
|
||||
#endif
|
||||
Q_snprintf(const_cast<char*>(m_levelName), sizeof(m_levelName), szNoMap);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user