From 37893167564f3d550ec2a8d7f0e35ca34222ffb1 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 30 Mar 2024 21:18:10 +0000 Subject: [PATCH] Goner password adjustments - After inputting an incorrect password on Goner, guarantee the "are you online" line doesn't play - When using either GDQ password, don't allow re-entry --- src/menus/main-goner.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/menus/main-goner.cpp b/src/menus/main-goner.cpp index de2cc6192..107b9c652 100644 --- a/src/menus/main-goner.cpp +++ b/src/menus/main-goner.cpp @@ -859,6 +859,12 @@ void M_GonerTick(void) if (M_TryPassword(cv_dummyextraspassword.string, false) != M_PW_EXTRAS) { + if (LinesOutput.empty() && !LinesToDigest.empty()) + { + // Remove "Metal Sonic. Are you online?" + LinesToDigest.pop_front(); + } + goner_delay = 0; LinesToDigest.emplace_front(GONERSPEAKER_EGGMAN, TICRATE, "Aha! Nice try. You're tricky enough WITHOUT admin access, thank you."); @@ -1259,7 +1265,7 @@ static void M_GonerConclude(INT32 choice) void M_GonerGDQ(boolean opinion) { - if (currentMenu != &MAIN_GonerDef) + if (currentMenu != &MAIN_GonerDef || goner_gdq == true) return; LinesToDigest.clear();