1
0
forked from 0ad/0ad

reset some map attribute, addresses #2803

This was SVN commit r15757.
This commit is contained in:
mimo 2014-09-15 21:59:51 +00:00
parent 3f1db1ef01
commit b2a479cc74

View File

@ -868,8 +868,9 @@ function selectMap(name)
if (!name)
return;
// reset the triggerSripts as some maps don't have one
// reset some map specific properties which are not necessarily redefined on each map
g_GameAttributes.settings.TriggerScripts = undefined;
g_GameAttributes.settings.CircularMap = undefined;
var mapData = loadMapData(name);
var mapSettings = (mapData && mapData.settings ? deepcopy(mapData.settings) : {});