Make magnifyDamage=0 for fragile objects actually work

This fixes a bug in 36d2cf14b8
1008-fix
krzys-h 2018-05-08 19:54:25 +02:00
parent db72a36315
commit dd40c4d4ee
1 changed files with 4 additions and 0 deletions

View File

@ -1089,6 +1089,10 @@ void COldObject::Read(CLevelParserLine* line)
{
SetRange(line->GetParam("range")->AsFloat(30.0f));
}
if (Implements(ObjectInterfaceType::Fragile))
{
SetMagnifyDamage(line->GetParam("magnifyDamage")->AsFloat(1.0f)); // TODO: This is a temporary hack for now - CFragileObject doesn't have SetMagnifyDamage ~krzys_h
}
if (Implements(ObjectInterfaceType::Shielded))
{
SetShield(line->GetParam("shield")->AsFloat(1.0f));