mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Fixed arg0str for dynamic light actors
This commit is contained in:
parent
364ce773e3
commit
ef867c3415
1 changed files with 3 additions and 0 deletions
|
@ -6101,6 +6101,9 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
|
||||||
if (mthing->arg0str != NAME_None)
|
if (mthing->arg0str != NAME_None)
|
||||||
{
|
{
|
||||||
PalEntry color = V_GetColor(nullptr, mthing->arg0str);
|
PalEntry color = V_GetColor(nullptr, mthing->arg0str);
|
||||||
|
light->args[0] = color.r;
|
||||||
|
light->args[1] = color.g;
|
||||||
|
light->args[2] = color.b;
|
||||||
}
|
}
|
||||||
else if (light->lightflags & LF_SPOT)
|
else if (light->lightflags & LF_SPOT)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue