1
0
forked from 0ad/0ad

More profiling tests in entityInitQuasi.

This was SVN commit r4100.
This commit is contained in:
Matei 2006-07-13 21:17:30 +00:00
parent 3954604890
commit d6408e89c6

View File

@ -377,9 +377,9 @@ function entityInitQuasi()
startXTimer(7); startXTimer(7);
// Generate civ code (1st four characters of civ name, in lower case eg "Carthaginians" => "cart"). // Generate civ code (1st four characters of civ name, in lower case eg "Carthaginians" => "cart").
if (this.traits.id && this.traits.id.civ)
{
var id = this.traits.id; var id = this.traits.id;
if (id && id.civ)
{
id.civ_code = id.civ.toString().substring (0, 4); id.civ_code = id.civ.toString().substring (0, 4);
id.civ_code = id.civ_code.toString().toLowerCase(); id.civ_code = id.civ_code.toString().toLowerCase();