1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

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.
This commit is contained in:
Info Teddy 2020-01-13 17:07:47 -08:00 committed by Ethan Lee
parent e0b80cf0b5
commit 01ad6cf1a1

View File

@ -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)