- force the renderer to use radial fog.

Plane-distance based fog does not work with Polymost's projection settings - the distance value appears to be completely off and useless.
Fixes #243
This commit is contained in:
Christoph Oelckers 2020-09-06 00:19:38 +02:00
parent dc0968bf61
commit d6b80bda52

View file

@ -1264,11 +1264,14 @@ void set_globalang(fixed_t const ang)
//
// drawrooms
//
EXTERN_CVAR(Int, gl_fogmode)
int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
fixed_t daang, fixed_t dahoriz, int16_t dacursectnum)
{
int32_t i;
if (gl_fogmode == 1) gl_fogmode = 2; // only radial fog works with Build's screwed up coordinate system.
set_globalpos(daposx, daposy, daposz);
set_globalang(daang);
@ -1286,11 +1289,7 @@ int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
Bmemset(gotsector, 0, sizeof(gotsector));
if (videoGetRenderMode() != REND_CLASSIC
)
{
i = xdimen-1;
}
i = xdimen-1;
for (int i = 0; i < numwalls; ++i)
{