- removed the 0 check on the UDMF property, so 0 can be a valid aperture

This commit is contained in:
Jonathan Russell 2018-01-04 23:22:45 +00:00
parent acf83c2a74
commit e754fe04ef
1 changed files with 2 additions and 4 deletions

View File

@ -6092,9 +6092,7 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
if (i->IsDescendantOf(RUNTIME_CLASS(ADynamicLight))) if (i->IsDescendantOf(RUNTIME_CLASS(ADynamicLight)))
{ {
if (mthing->SpotInnerAngle != 0)
((ADynamicLight*)mobj)->SpotInnerAngle = mthing->SpotInnerAngle; ((ADynamicLight*)mobj)->SpotInnerAngle = mthing->SpotInnerAngle;
if (mthing->SpotOuterAngle != 0)
((ADynamicLight*)mobj)->SpotOuterAngle = mthing->SpotOuterAngle; ((ADynamicLight*)mobj)->SpotOuterAngle = mthing->SpotOuterAngle;
} }