diff --git a/doc/040_cvarlist.md b/doc/040_cvarlist.md index 3586c5c2..b2fc07bd 100644 --- a/doc/040_cvarlist.md +++ b/doc/040_cvarlist.md @@ -266,7 +266,7 @@ Set `0` by default. * **s_underwater**: Dampen sounds if submerged. Enabled by default. -* **s_occlusion_strength**: If set bigger than `0` sound occusion effects +* **s_occlusion_strength**: If set bigger than `0` sound occlusion effects are enabled. This is only supported by the OpenAL sound backend. By default this cvar is disabled (set to 0). diff --git a/src/client/sound/openal.c b/src/client/sound/openal.c index 14400a94..d40aa28a 100644 --- a/src/client/sound/openal.c +++ b/src/client/sound/openal.c @@ -486,7 +486,7 @@ static char ReverbPresetsNames[][32] = { static void AL_SetReverb(int reverb_effect) { - EFXEAXREVERBPROPERTIES reverb = ReverbPresets[reverb_effect]; + EFXEAXREVERBPROPERTIES reverb; if (reverb_effect == lastreverteffect || reverb_effect < 0 || @@ -495,6 +495,7 @@ AL_SetReverb(int reverb_effect) return; } + reverb = ReverbPresets[reverb_effect]; lastreverteffect = reverb_effect; qalEffectf(ReverbEffect[QAL_REVERB_EFFECT], AL_REVERB_DENSITY, reverb.flDensity); diff --git a/src/game/g_main.c b/src/game/g_main.c index 5bb3ddec..b4fd82d3 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -105,7 +105,7 @@ ShutdownGame(void) /* * convert function declarations to correct one * (warning like from incompatible pointer type) - * little bit better than cust function before set + * little bit better than cast function before set */ static void ReadLevel_f(char *filename) diff --git a/src/game/savegame/savegame.c b/src/game/savegame/savegame.c index 73537845..f5c43992 100644 --- a/src/game/savegame/savegame.c +++ b/src/game/savegame/savegame.c @@ -71,7 +71,7 @@ * load older savegames. This should be bumped if the files * in tables/ are changed, otherwise strange things may happen. */ -#define SAVEGAMEVER "YQ2-4" +#define SAVEGAMEVER "YQ2-5" #ifndef BUILD_DATE #define BUILD_DATE __DATE__ @@ -827,6 +827,7 @@ ReadGame(const char *filename) {"YQ2-2", 2}, {"YQ2-3", 3}, {"YQ2-4", 4}, + {"YQ2-5", 5}, }; for (i=0; i < sizeof(version_mappings)/sizeof(version_mappings[0]); ++i)