add light_noshadowmap/light_dontlightactors/light_dontlightmap to UDMF
This commit is contained in:
parent
56787bbc17
commit
479e0c301e
5 changed files with 36 additions and 0 deletions
|
|
@ -6218,6 +6218,21 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
|
|||
{
|
||||
mobj->FloatVar(NAME_LightStrength) = mthing->LightStrength;
|
||||
}
|
||||
|
||||
if (mthing->LightNoShadowMap)
|
||||
{
|
||||
mobj->IntVar(NAME_lightflags) |= LF_NOSHADOWMAP;
|
||||
}
|
||||
|
||||
if (mthing->LightDontLightActors)
|
||||
{
|
||||
mobj->IntVar(NAME_lightflags) |= LF_DONTLIGHTACTORS;
|
||||
}
|
||||
|
||||
if (mthing->LightDontLightMap)
|
||||
{
|
||||
mobj->IntVar(NAME_lightflags) |= LF_DONTLIGHTMAP;
|
||||
}
|
||||
}
|
||||
|
||||
mobj->CallBeginPlay ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue