fix typo in Bridge

This commit is contained in:
Chris Forbes
2011-10-19 10:11:18 +13:00
parent 325ec41182
commit a5547eac97

View File

@@ -164,7 +164,7 @@ namespace OpenRA.Mods.RA
{ {
self.Kill(self); // this changes the damagestate self.Kill(self); // this changes the damagestate
} }
var oldTempate = currentTemplate; var oldTemplate = currentTemplate;
var ds = Health.DamageState; var ds = Health.DamageState;
currentTemplate = (ds == DamageState.Dead && Info.DestroyedTemplate > 0) ? Info.DestroyedTemplate : currentTemplate = (ds == DamageState.Dead && Info.DestroyedTemplate > 0) ? Info.DestroyedTemplate :
(ds >= DamageState.Heavy && Info.DamagedTemplate > 0) ? Info.DamagedTemplate : Info.Template; (ds >= DamageState.Heavy && Info.DamagedTemplate > 0) ? Info.DamagedTemplate : Info.Template;
@@ -183,7 +183,7 @@ namespace OpenRA.Mods.RA
currentTemplate = Info.DestroyedPlusSouthTemplate; currentTemplate = Info.DestroyedPlusSouthTemplate;
} }
if (currentTemplate == oldTempate) if (currentTemplate == oldTemplate)
return; return;
// Update map // Update map