More profiling tests in entityInitQuasi.
This was SVN commit r4100.
This commit is contained in:
parent
3954604890
commit
d6408e89c6
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user