From 497deaf4774f6f2c478c52ff092a6eb85f2e0939 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 9 Aug 2021 21:54:05 +0700 Subject: Disable NPC's footsteps and clean up sound loading https://todo.sr.ht/~cnx/blackshades/13 --- src/Fog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Fog.cpp') 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); } -- cgit 1.4.1