From 7701d54b1fe378f09c16353b9d73a7a93deff6a6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Mar 2015 12:24:28 +0100 Subject: [PATCH] - fixed: associated dynamic lights took the sprite/frame info from the actor's current state instead of from the actor's current sprite and frame, which may differ in case some placeholder sprite is used in the state. --- src/gl/dynlights/gl_dynlight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/dynlights/gl_dynlight.cpp b/src/gl/dynlights/gl_dynlight.cpp index f9349bdb2a..f143a479bf 100644 --- a/src/gl/dynlights/gl_dynlight.cpp +++ b/src/gl/dynlights/gl_dynlight.cpp @@ -1113,8 +1113,8 @@ void gl_SetActorLights(AActor *actor) ADynamicLight *lights, *tmpLight; unsigned int i; - int sprite = actor->state->sprite; - int frame = actor->state->GetFrame(); + int sprite = actor->sprite; + int frame = actor->frame; lights = tmpLight = NULL;