From e754fe04efc8720d46f5fb266899219bb7f24c1f Mon Sep 17 00:00:00 2001 From: Jonathan Russell Date: Thu, 4 Jan 2018 23:22:45 +0000 Subject: [PATCH] - removed the 0 check on the UDMF property, so 0 can be a valid aperture --- src/p_mobj.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 78b41facc..fc41dd3b0 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -6092,10 +6092,8 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position) if (i->IsDescendantOf(RUNTIME_CLASS(ADynamicLight))) { - if (mthing->SpotInnerAngle != 0) - ((ADynamicLight*)mobj)->SpotInnerAngle = mthing->SpotInnerAngle; - if (mthing->SpotOuterAngle != 0) - ((ADynamicLight*)mobj)->SpotOuterAngle = mthing->SpotOuterAngle; + ((ADynamicLight*)mobj)->SpotInnerAngle = mthing->SpotInnerAngle; + ((ADynamicLight*)mobj)->SpotOuterAngle = mthing->SpotOuterAngle; } mobj->CallBeginPlay ();