Move marking of mapstarted to before calling of map start notifs. (bug 5119, r=asherkin).
authorNicholas Hastings <skamonkey@gmail.com>
Fri Oct 14 09:25:42 2011 -0400 (2011-10-14)
changeset 3410b948e11cd67d
parent 3409 54db537f8a30
child 3411 0a2e40a50757
Move marking of mapstarted to before calling of map start notifs. (bug 5119, r=asherkin).
core/PlayerManager.cpp
     1.1 --- a/core/PlayerManager.cpp	Thu Oct 13 20:06:40 2011 -0400
     1.2 +++ b/core/PlayerManager.cpp	Fri Oct 14 09:25:42 2011 -0400
     1.3 @@ -250,6 +250,9 @@
     1.4  
     1.5  		g_PluginSys.SyncMaxClients(m_maxClients);
     1.6  	}
     1.7 +
     1.8 +	g_OnMapStarted = true;
     1.9 +
    1.10  	g_Extensions.CallOnCoreMapStart(pEdictList, edictCount, m_maxClients);
    1.11  	m_onActivate->Execute(NULL);
    1.12  	m_onActivate2->Execute(NULL);
    1.13 @@ -263,8 +266,6 @@
    1.14  		}
    1.15  	}
    1.16  
    1.17 -	g_OnMapStarted = true;
    1.18 -
    1.19  	SMGlobalClass *cls = SMGlobalClass::head;
    1.20  	while (cls)
    1.21  	{