diff --git a/src/s_environment.cpp b/src/s_environment.cpp index ac268bc5f..4d83dd2d4 100644 --- a/src/s_environment.cpp +++ b/src/s_environment.cpp @@ -903,9 +903,9 @@ DEFINE_ACTION_FUNCTION(DReverbEdit, GetValue) { PARAM_PROLOGUE; PARAM_INT(index); - float v = 0; + float v; - if (index >= 0 && index < (int)countof(ReverbFields)) + if (index >= 0 && index < countof(ReverbFields)) { auto rev = &ReverbFields[index]; if (rev->Int != nullptr) @@ -931,7 +931,7 @@ DEFINE_ACTION_FUNCTION(DReverbEdit, SetValue) PARAM_INT(index); PARAM_FLOAT(v); - if (index >= 0 && index < (int)countof(ReverbFields)) + if (index >= 0 && index < countof(ReverbFields)) { auto rev = &ReverbFields[index]; if (rev->Int != nullptr) diff --git a/wadsrc/static/language.enu b/wadsrc/static/language.enu index 6bb5dbdc2..7b5eed9a0 100644 --- a/wadsrc/static/language.enu +++ b/wadsrc/static/language.enu @@ -1682,6 +1682,7 @@ OPTMNU_CHANGERENDER = "Change Rendering Output"; OPTMNU_DEFAULTS = "Reset to defaults"; OPTMNU_RESETTOSAVED = "Reset to last saved"; OPTMNU_CONSOLE = "Go to console"; +OPTMNU_REVERB = "Reverb environment editor"; // Controls Menu diff --git a/wadsrc/static/zscript.txt b/wadsrc/static/zscript.txt index 919e2f97f..755e427dd 100644 --- a/wadsrc/static/zscript.txt +++ b/wadsrc/static/zscript.txt @@ -25,6 +25,7 @@ version "3.3" #include "zscript/menu/videomenu.txt" #include "zscript/menu/readthis.txt" #include "zscript/menu/conversationmenu.txt" +#include "zscript/menu/reverbedit.txt" #include "zscript/statscreen/types.txt" #include "zscript/statscreen/statscreen.txt"