mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
@@ -39,7 +39,15 @@ function loadCivData(selectableOnly, gaia)
|
||||
translateObjectKeys(civData, ["Name", "Description", "History", "Special"]);
|
||||
|
||||
if (gaia)
|
||||
civData.gaia = { "Code": "gaia", "Name": translate("Gaia") };
|
||||
{
|
||||
const gaiaTemplate = Engine.GetTemplate("special/players/gaia");
|
||||
|
||||
civData.gaia = {
|
||||
"Code": "gaia",
|
||||
"Name": translate(gaiaTemplate.Identity.GenericName),
|
||||
"Emblem": "session/portraits/" + gaiaTemplate.Identity.Icon
|
||||
};
|
||||
}
|
||||
|
||||
return deepfreeze(civData);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ class CivIcon
|
||||
|
||||
rebuild()
|
||||
{
|
||||
const hidden = g_ViewedPlayer <= 0;
|
||||
const hidden = g_ViewedPlayer < 0;
|
||||
this.civIcon.hidden = hidden;
|
||||
if (hidden)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user