From dd40c4d4eef164e36dd27e0db083566422a58479 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Tue, 8 May 2018 19:54:25 +0200 Subject: [PATCH] Make magnifyDamage=0 for fragile objects actually work This fixes a bug in 36d2cf14b8432ac54571fab98c2a92a25751fd2b --- src/object/old_object.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/object/old_object.cpp b/src/object/old_object.cpp index 80b65c4d..23a303aa 100644 --- a/src/object/old_object.cpp +++ b/src/object/old_object.cpp @@ -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));