- fixed: When creating colormaps for 3D floors the model sector's fade value must be used when defining a fog volume.

This commit is contained in:
Christoph Oelckers 2013-08-09 23:40:34 +02:00
parent 9c12c03684
commit 55f637c906

View file

@ -60,7 +60,7 @@
FDynamicColormap *F3DFloor::GetColormap()
{
// If there's no fog in either model or target sector this is easy and fast.
if ((target->ColorMap->Fade == 0 && model->ColorMap->Fade == 0) || (flags & FF_FADEWALLS))
if ((target->ColorMap->Fade == 0 && model->ColorMap->Fade == 0) || (flags & (FF_FADEWALLS|FF_FOG)))
{
return model->ColorMap;
}