mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +00:00
- 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:
parent
d037493ffe
commit
342f1abcc7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue