1
0
forked from 0ad/0ad

New maps get player data per #590, and some minor bugfixes

This was SVN commit r8496.
This commit is contained in:
historic_bruno 2010-10-30 05:19:55 +00:00
parent 22672e69d9
commit 5567727bd1
4 changed files with 7 additions and 6 deletions

View File

@ -181,8 +181,9 @@ function toTitleCase (string)
// Load default player data, for when it's not otherwise specified
function initPlayerDefaults()
{
var filename = "simulation/data/player_defaults.json";
var defaults = [];
var rawData = readFile("simulation/data/player_defaults.json");
var rawData = readFile(filename);
if (!rawData)
error("Failed to read player defaults file: "+filename);

Binary file not shown.

Binary file not shown.