From 607be91c4858244ad49ed4cb3c384f2b97a9eb47 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 11 May 2014 16:54:11 +0200 Subject: [PATCH] - bad copy. --- src/gl/renderer/gl_lightdata.cpp | 2 +- src/gl/renderer/gl_renderstate.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_lightdata.cpp b/src/gl/renderer/gl_lightdata.cpp index 3caa5cbc5..afd5cdbcf 100644 --- a/src/gl/renderer/gl_lightdata.cpp +++ b/src/gl/renderer/gl_lightdata.cpp @@ -375,7 +375,7 @@ void gl_SetColor(int light, int rellight, const FColormap * cm, float alpha, Pal // //========================================================================== -static float gl_GetFogDensity(int lightlevel, PalEntry fogcolor) +float gl_GetFogDensity(int lightlevel, PalEntry fogcolor) { float density; diff --git a/src/gl/renderer/gl_renderstate.h b/src/gl/renderer/gl_renderstate.h index 2c2c43605..e037fb637 100644 --- a/src/gl/renderer/gl_renderstate.h +++ b/src/gl/renderer/gl_renderstate.h @@ -236,6 +236,11 @@ public: mDynColor = pe; } + void SetObjectColor(PalEntry pe) + { + mObjectColor = pe; + } + void SetFog(PalEntry c, float d) { mFogColor = c;