diff --git a/Sources/GameMP/Game.cpp b/Sources/GameMP/Game.cpp index 5d7a5e7..52a328e 100644 --- a/Sources/GameMP/Game.cpp +++ b/Sources/GameMP/Game.cpp @@ -1023,7 +1023,7 @@ void CGame::InitInternal( void) extern CTString GetCurrentGameTypeName(void); extern ULONG GetSpawnFlagsForGameType(INDEX); extern ULONG GetSpawnFlagsForGameTypeCfunc(void* pArgs); - extern BOOL IsMenuEnabled(const CTString &); + extern BOOL IsMenuEnabled_(const CTString &); extern BOOL IsMenuEnabledCfunc(void* pArgs); _pShell->DeclareSymbol("user CTString GetGameAgentRulesInfo(void);", (void *)&GetGameAgentRulesInfo); _pShell->DeclareSymbol("user CTString GetGameTypeName(INDEX);", (void *)&GetGameTypeNameCfunc); @@ -1035,7 +1035,7 @@ void CGame::InitInternal( void) _pShell->DeclareSymbol("CTString GetGameTypeNameSS(INDEX);", (void *)&GetGameTypeName); _pShell->DeclareSymbol("INDEX GetSpawnFlagsForGameTypeSS(INDEX);", (void *)&GetSpawnFlagsForGameType); - _pShell->DeclareSymbol("INDEX IsMenuEnabledSS(CTString);", (void *)&IsMenuEnabled); + _pShell->DeclareSymbol("INDEX IsMenuEnabledSS(CTString);", (void *)&IsMenuEnabled_); _pShell->DeclareSymbol("user const INDEX ctl_iCurrentPlayerLocal;", (void *)&ctl_iCurrentPlayerLocal); _pShell->DeclareSymbol("user const INDEX ctl_iCurrentPlayer;", (void *)&ctl_iCurrentPlayer); diff --git a/Sources/GameMP/SessionProperties.cpp b/Sources/GameMP/SessionProperties.cpp index b6377ff..7a72abb 100644 --- a/Sources/GameMP/SessionProperties.cpp +++ b/Sources/GameMP/SessionProperties.cpp @@ -251,7 +251,7 @@ void CGame::SetMultiPlayerSession(CSessionProperties &sp) } } -BOOL IsMenuEnabled(const CTString &strMenuName) +BOOL IsMenuEnabled_(const CTString &strMenuName) { if (strMenuName=="Single Player") { return TRUE; @@ -272,7 +272,7 @@ BOOL IsMenuEnabled(const CTString &strMenuName) BOOL IsMenuEnabledCfunc(void* pArgs) { CTString strMenuName = *NEXTARGUMENT(CTString*); - return IsMenuEnabled(strMenuName); + return IsMenuEnabled_(strMenuName); } CTString GetGameTypeName(INDEX iMode)