Sort AI list by name, and rename Test Bot so it's a bit clearer and is listed first
This was SVN commit r9031.
This commit is contained in:
parent
c0383ffc30
commit
08d5e7bf66
@ -76,6 +76,11 @@ function initMain()
|
||||
// Load AI list
|
||||
g_AIs = Engine.GetAIs();
|
||||
|
||||
// Sort AIs by displayed name
|
||||
g_AIs.sort(function (a, b) {
|
||||
return a.data.name < b.data.name ? -1 : b.data.name < a.data.name ? +1 : 0;
|
||||
});
|
||||
|
||||
// Get default player data - remove gaia
|
||||
var pDefs = initPlayerDefaults();
|
||||
pDefs.shift();
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Test Bot",
|
||||
"description": "A simple AI for testing the framework.",
|
||||
"name": "Demo Bot",
|
||||
"description": "A simple opponent, mainly designed for testing our AI scripting framework.",
|
||||
"constructor": "TestBotAI"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user