From 01ad6cf1a115bf90353963a2324cf50eed91a4ed Mon Sep 17 00:00:00 2001 From: Info Teddy Date: Mon, 13 Jan 2020 17:07:47 -0800 Subject: [PATCH] Disable muting in the script editor This disables being able to press M to mute while editing a script in the script editor. It also disables it in the script list, too, but I'm hoping no one thinks that's an issue, because I personally don't think it is. --- desktop_version/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 171796ee..7bc31c0c 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -481,7 +481,7 @@ int main(int argc, char *argv[]) } //Mute button - if (key.isDown(KEYBOARD_m) && game.mutebutton<=0 && !ed.textentry) + if (key.isDown(KEYBOARD_m) && game.mutebutton<=0 && !ed.textentry && !key.textentrymode) { game.mutebutton = 8; if (game.muted)