From 5bd6f6e28fef7de3f24fb1aa6b5ddfad1437de64 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 20 Feb 2018 11:55:16 +0000 Subject: [PATCH] Menus: Hide blank cheats git-svn-id: https://svn.eduke32.com/eduke32@6678 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/menus.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index 356d519b7..ad79d366f 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -1998,6 +1998,14 @@ static void Menu_Pre(MenuID_t cm) { const int32_t menucheatsdisabled = numplayers != 1 || !(g_player[myconnectindex].ps->gm & MODE_GAME); + // refresh display names of quote cheats + if (!DUKEBETA) + { + ME_CheatCodes[CHEATFUNC_QUOTEBETA].name = apStrings[QUOTE_CHEAT_BETA]; + ME_CheatCodes[CHEATFUNC_QUOTETODD].name = NAM ? g_NAMMattCheatQuote : apStrings[QUOTE_CHEAT_TODD]; + ME_CheatCodes[CHEATFUNC_QUOTEALLEN].name = apStrings[QUOTE_CHEAT_ALLEN]; + } + for (i = 0; i < NUMCHEATFUNCS; i++) { uint32_t cheatmask = cl_cheatmask & (1<