From 7e8688ae2d41055c48625bcc62cb64eac17dbf2c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 28 Jul 2020 20:59:17 +0200 Subject: [PATCH] - fixed snd_channels menu entry. Fixes #57 --- source/games/duke/src/game_misc.cpp | 5 ++++- wadsrc/static/engine/menudef.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/game_misc.cpp b/source/games/duke/src/game_misc.cpp index d5d0ea541..7d9d4dfa0 100644 --- a/source/games/duke/src/game_misc.cpp +++ b/source/games/duke/src/game_misc.cpp @@ -149,7 +149,10 @@ void FTA(int q, struct player_struct* p) if (p->ftq != q) { - if (q == 13) p->ftq = q; + if (q == QUOTE_DEAD) + { + p->ftq = q; + } auto qu = quoteMgr.GetQuote(q); if (p == &ps[screenpeek] && qu[0] != '\0') { diff --git a/wadsrc/static/engine/menudef.txt b/wadsrc/static/engine/menudef.txt index 962149769..1ad6888da 100644 --- a/wadsrc/static/engine/menudef.txt +++ b/wadsrc/static/engine/menudef.txt @@ -1158,7 +1158,7 @@ OptionMenu SoundOptions //protected Option "$SNDMNU_MIDIDEVICE", "snd_mididevice", "MidiDevices" //StaticText " " //Option "$SNDMNU_UNDERWATERREVERB", "snd_waterreverb", "OnOff" - Slider "$SNDMNU_CHANNELS", "snd_numchannels", 64, 128, 8, 0 + Slider "$SNDMNU_CHANNELS", "snd_channels", 64, 256, 16, 0 staticText "" ifgame (Blood, ShadowWarrior, Redneck, RedneckRides) {