fix visual glitchyness on creating actors that will be selected in their first tick
This commit is contained in:
@@ -36,7 +36,9 @@ namespace OpenRA.Traits
|
||||
{
|
||||
Info = info;
|
||||
MaxHP = info.HP;
|
||||
|
||||
hp = init.Contains<HealthInit>() ? (int)(init.Get<HealthInit, float>() * MaxHP) : MaxHP;
|
||||
DisplayHp = hp;
|
||||
}
|
||||
|
||||
public int HP { get { return hp; } }
|
||||
|
||||
Reference in New Issue
Block a user