about summary refs log tree commit diff
path: root/src/Fog.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-08-09 21:54:05 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-08-09 21:54:05 +0700
commit497deaf4774f6f2c478c52ff092a6eb85f2e0939 (patch)
treef793bb5aa4fd83e31b30adc98e2133ba176b84eb /src/Fog.cpp
parent1e83457eb3d786f553d77ece0b95f9aca641e524 (diff)
downloadblackshades-497deaf4774f6f2c478c52ff092a6eb85f2e0939.tar.gz
Disable NPC's footsteps and clean up sound loading 1.3.4
https://todo.sr.ht/~cnx/blackshades/13
Diffstat (limited to 'src/Fog.cpp')
-rw-r--r--src/Fog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fog.cpp b/src/Fog.cpp
index 82f1d88..80e2830 100644
--- a/src/Fog.cpp
+++ b/src/Fog.cpp
@@ -16,8 +16,8 @@ void Fog::SetFog(float colorR, float colorG, float colorB, float fStart, float f
 	glFogfv(GL_FOG_COLOR,fogColor);
 	glFogf(GL_FOG_DENSITY,fogDensity);
 	glFogi(GL_FOG_HINT,GL_DONT_CARE);
-	glFogi(GL_FOG_START,fogStart);
-	glFogi(GL_FOG_END,fogEnd);
+	glFogf(GL_FOG_START,fogStart);
+	glFogf(GL_FOG_END,fogEnd);
 
 	glEnable(GL_FOG);
 }
@@ -34,8 +34,8 @@ void Fog::TempFog(float colorR, float colorG, float colorB)
 	glFogfv(GL_FOG_COLOR,tempfogColor);
 	glFogf(GL_FOG_DENSITY,fogDensity);
 	glFogi(GL_FOG_HINT,GL_DONT_CARE);
-	glFogi(GL_FOG_START,fogStart);
-	glFogi(GL_FOG_END,fogEnd);
+	glFogf(GL_FOG_START,fogStart);
+	glFogf(GL_FOG_END,fogEnd);
 
 	glEnable(GL_FOG);
 }
@@ -46,8 +46,8 @@ void Fog::ResetFog()
 	glFogfv(GL_FOG_COLOR,fogColor);
 	glFogf(GL_FOG_DENSITY,fogDensity);
 	glFogi(GL_FOG_HINT,GL_DONT_CARE);
-	glFogi(GL_FOG_START,fogStart);
-	glFogi(GL_FOG_END,fogEnd);
+	glFogf(GL_FOG_START,fogStart);
+	glFogf(GL_FOG_END,fogEnd);
 
 	glEnable(GL_FOG);
 }