From edaecf0a5b442b92ffbd64f8ec8f4d5eebdbaee9 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Sat, 5 Oct 2013 02:23:58 -0400 Subject: [PATCH] Mounted image weapon light fix Fix for mounted image lights beyond the first weapon light. Before this fix all mounted images that have lights would not function if mounted to a slot after a mounted image that uses a weapon light. --- Engine/source/T3D/shapeImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/shapeImage.cpp b/Engine/source/T3D/shapeImage.cpp index b20aa041f..8f82ef584 100644 --- a/Engine/source/T3D/shapeImage.cpp +++ b/Engine/source/T3D/shapeImage.cpp @@ -3262,7 +3262,7 @@ void ShapeBase::submitLights( LightManager *lm, bool staticLighting ) { S32 elapsed = Sim::getCurrentTime() - image.lightStart; if ( elapsed > imageData->lightDuration ) - return; + continue; intensity = ( 1.0 - (F32)elapsed / (F32)imageData->lightDuration ) * imageData->lightBrightness; break; }