1
0
forked from 0ad/0ad

preserve random civ in saved game settings, refs #2963

This was SVN commit r16095.
This commit is contained in:
mimo 2014-12-31 15:34:48 +00:00
parent 802320e753
commit e8d1acfa41

View File

@ -993,6 +993,8 @@ function launchGame()
if (!g_GameAttributes.map)
return;
saveGameAttributes();
if (g_GameAttributes.map == "random")
selectMap(Engine.GetGUIObjectByName("mapSelection").list_data[Math.floor(Math.random() *
(Engine.GetGUIObjectByName("mapSelection").list.length - 1)) + 1]);
@ -1050,8 +1052,6 @@ function launchGame()
}
}
saveGameAttributes();
if (g_IsNetworked)
{
Engine.SetNetworkGameAttributes(g_GameAttributes);