- fixed: flickering dynamic lights with their first intensity value larger than the second one weren't properly linked into all touching sectors.

This commit is contained in:
Christoph Oelckers 2016-01-30 00:45:47 +01:00
parent d037493ffe
commit 342f1abcc7

View file

@ -42,6 +42,7 @@
#include "g_level.h" #include "g_level.h"
#include "thingdef/thingdef.h" #include "thingdef/thingdef.h"
#include "i_system.h" #include "i_system.h"
#include "templates.h"
#include "gl/renderer/gl_renderer.h" #include "gl/renderer/gl_renderer.h"
@ -361,7 +362,7 @@ void ADynamicLight::UpdateLocation()
if (lighttype == FlickerLight || lighttype == RandomFlickerLight) if (lighttype == FlickerLight || lighttype == RandomFlickerLight)
{ {
intensity = float(m_intensity[1]); intensity = float(MAX(m_intensity[0], m_intensity[1]));
} }
else else
{ {