Skip to content

Commit

Permalink
Fixed arg0str for dynamic light actors
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZYZX authored and Rachael Alexanderson committed Feb 4, 2018
1 parent 364ce77 commit ef867c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/p_mobj.cpp
Expand Up @@ -6101,6 +6101,9 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
if (mthing->arg0str != NAME_None)
{
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)
{
Expand Down

0 comments on commit ef867c3

Please sign in to comment.