fix Bridge init

This commit is contained in:
Chris Forbes
2010-07-30 18:24:12 +12:00
parent e1a0d40530
commit d6b8b327d9
2 changed files with 8 additions and 4 deletions

View File

@@ -90,9 +90,9 @@ namespace OpenRA.Mods.RA
{
currentTemplate = template;
if (template == Info.DamagedTemplate)
Health.InflictDamage(self, self, Health.MaxHP/2, null);
Health.HPFraction = .5f;
else if (template != Info.Template)
Health.InflictDamage(self, self, Health.MaxHP, null);
Health.HPFraction = 0f;
// Create a new cache to store the tile data
if (cachedTileset != self.World.Map.Tileset)