ref: 7168fb9ddc3eb22baa1845000812ddd001dbf93f
parent: 0c16c09f75dd3102943fca15306550199f6940d0
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Dec 16 17:41:04 EST 2023
reset fog on each new map
--- a/r_fog.c
+++ b/r_fog.c
@@ -39,6 +39,13 @@
}
void
+R_ResetFog(void)
+{
+ r_fog.density = 0;
+ setcvar("r_skyfog", "0");
+}
+
+void
R_DrawFog(void)
{
byte skyfogalpha, a;
--- a/r_local.h
+++ b/r_local.h
@@ -101,6 +101,7 @@
extern int r_drawflags;
+void R_ResetFog(void);
void R_DrawFog(void);
void R_InitFog(void);
--- a/r_main.c
+++ b/r_main.c
@@ -197,6 +197,7 @@
r_viewleaf = nil;
R_ClearParticles ();
+ R_ResetFog();
r_maxedgesseen = 0;
r_maxsurfsseen = 0;
r_dowarpold = false;