reset the trigger script when changing map, fix #2793
This was SVN commit r15750.
This commit is contained in:
parent
4f7a935f44
commit
67c3a80c42
@ -868,6 +868,9 @@ function selectMap(name)
|
||||
if (!name)
|
||||
return;
|
||||
|
||||
// reset the triggerSripts as some maps don't have one
|
||||
g_GameAttributes.settings.TriggerScripts = undefined;
|
||||
|
||||
var mapData = loadMapData(name);
|
||||
var mapSettings = (mapData && mapData.settings ? deepcopy(mapData.settings) : {});
|
||||
|
||||
@ -1341,9 +1344,7 @@ function updateGameAttributes()
|
||||
sendRegisterGameStanza();
|
||||
}
|
||||
else
|
||||
{
|
||||
onGameAttributesChange();
|
||||
}
|
||||
}
|
||||
|
||||
function AIConfigCallback(ai)
|
||||
|
Loading…
Reference in New Issue
Block a user