fixed bug in amb275

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40792
This commit is contained in:
Borja Ferrer 2007-05-13 17:23:42 +00:00
parent f76a2b4e07
commit ae8b06194f
2 changed files with 5 additions and 1 deletions

View File

@ -73,6 +73,7 @@ SourceModBase::SourceModBase()
{ {
m_IsMapLoading = false; m_IsMapLoading = false;
m_ExecPluginReload = false; m_ExecPluginReload = false;
m_ExecOnMapEnd = false;
m_GotBasePath = false; m_GotBasePath = false;
} }
@ -266,6 +267,7 @@ bool SourceModBase::LevelInit(char const *pMapName, char const *pMapEntities, ch
m_IsMapLoading = true; m_IsMapLoading = true;
m_ExecPluginReload = true; m_ExecPluginReload = true;
m_ExecOnMapEnd = true;
g_LastTime = 0.0f; g_LastTime = 0.0f;
g_LastMenuTime = 0.0f; g_LastMenuTime = 0.0f;
g_LastAuthCheck = 0.0f; g_LastAuthCheck = 0.0f;
@ -403,9 +405,10 @@ void SourceModBase::GameFrame(bool simulating)
void SourceModBase::LevelShutdown() void SourceModBase::LevelShutdown()
{ {
if (g_pOnMapEnd) if (g_pOnMapEnd && m_ExecOnMapEnd)
{ {
g_pOnMapEnd->Execute(NULL); g_pOnMapEnd->Execute(NULL);
m_ExecOnMapEnd = false;
} }
if (m_ExecPluginReload) if (m_ExecPluginReload)

View File

@ -114,6 +114,7 @@ private:
char m_ModDir[32]; char m_ModDir[32];
bool m_IsMapLoading; bool m_IsMapLoading;
bool m_ExecPluginReload; bool m_ExecPluginReload;
bool m_ExecOnMapEnd;
unsigned int m_target; unsigned int m_target;
bool m_CheckingAuth; bool m_CheckingAuth;
bool m_GotBasePath; bool m_GotBasePath;