Prevent selecting unusable civs in random map setup. Fixes #813.
This was SVN commit r9392.
This commit is contained in:
parent
7499b23991
commit
0b996bbe75
@ -73,5 +73,6 @@
|
||||
],
|
||||
"StartEntities":
|
||||
[
|
||||
]
|
||||
}
|
||||
],
|
||||
"SelectableInGameSetup": false
|
||||
}
|
||||
|
@ -82,5 +82,6 @@
|
||||
],
|
||||
"StartEntities":
|
||||
[
|
||||
]
|
||||
}
|
||||
],
|
||||
"SelectableInGameSetup": false
|
||||
}
|
||||
|
@ -86,5 +86,6 @@
|
||||
],
|
||||
"StartEntities":
|
||||
[
|
||||
]
|
||||
}
|
||||
],
|
||||
"SelectableInGameSetup": false
|
||||
}
|
||||
|
@ -387,8 +387,12 @@ function initCivNameList()
|
||||
// Cache civ data
|
||||
g_CivData = loadCivData();
|
||||
|
||||
var civList = [ { "name": civ.Name, "code": civ.Code } for each (civ in g_CivData) ];
|
||||
|
||||
// Extract name/code, and skip civs that are explicitly disabled
|
||||
// (intended for unusable incomplete civs)
|
||||
var civList = [ { "name": civ.Name, "code": civ.Code }
|
||||
for each (civ in g_CivData)
|
||||
if (civ.SelectableInGameSetup !== false) ];
|
||||
|
||||
// Alphabetically sort the list, ignoring case
|
||||
civList.sort(sortNameIgnoreCase);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user