temporary endmatch fix

This commit is contained in:
kremsy 2014-02-19 13:37:13 +01:00 committed by Steffen Schröder
parent db255fe1c0
commit 655b337943

View File

@ -40,7 +40,7 @@ class CallbackManager {
const CB_MP_MODESCRIPTCALLBACK = 'ManiaPlanet.ModeScriptCallback';
const CB_MP_MODESCRIPTCALLBACKARRAY = 'ManiaPlanet.ModeScriptCallbackArray';
const CB_MP_TUNNELDATARECEIVED = 'ManiaPlanet.TunnelDataReceived';
// TrackMania callbacks
const CB_TM_PLAYERCHECKPOINT = 'TrackMania.PlayerCheckpoint';
const CB_TM_PLAYERFINISH = 'TrackMania.PlayerFinish';
@ -206,6 +206,7 @@ class CallbackManager {
$this->mapEnded = false;
}
break;
case 'ManiaPlanet.EndMatch': //TODO temporary fix
case 'ManiaPlanet.EndMap':
if (!$this->mapEnded) {
$this->triggerCallback(self::CB_ENDMAP, $callback);