- added UDMF properties for spotlights (args have all been used up for dynlights)
This commit is contained in:
parent
79440d7014
commit
7f7c720883
4 changed files with 58 additions and 0 deletions
|
|
@ -108,6 +108,7 @@
|
|||
#include "a_morph.h"
|
||||
#include "events.h"
|
||||
#include "actorinlines.h"
|
||||
#include "a_dynlight.h"
|
||||
|
||||
// MACROS ------------------------------------------------------------------
|
||||
|
||||
|
|
@ -6001,6 +6002,8 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// spawn it
|
||||
double sz;
|
||||
|
||||
|
|
@ -6087,6 +6090,14 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
|
|||
mobj->fillcolor = (mthing->fillcolor & 0xffffff) | (ColorMatcher.Pick((mthing->fillcolor & 0xff0000) >> 16,
|
||||
(mthing->fillcolor & 0xff00) >> 8, (mthing->fillcolor & 0xff)) << 24);
|
||||
|
||||
if (i->IsDescendantOf(RUNTIME_CLASS(ADynamicLight)))
|
||||
{
|
||||
if (mthing->SpotInnerAngle != 0)
|
||||
((ADynamicLight*)mobj)->SpotInnerAngle = mthing->SpotInnerAngle;
|
||||
if (mthing->SpotOuterAngle != 0)
|
||||
((ADynamicLight*)mobj)->SpotOuterAngle = mthing->SpotOuterAngle;
|
||||
}
|
||||
|
||||
mobj->CallBeginPlay ();
|
||||
if (!(mobj->ObjectFlags & OF_EuthanizeMe))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue