From 7b4283bf4a13430343038e9c62dca8a3c9a7b0af Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 13 Apr 2007 23:59:52 +0000 Subject: [PATCH] Fixed amb207: Last item displayed as "10" instead of "0" on new menus. --- amxmodx/newmenus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amxmodx/newmenus.cpp b/amxmodx/newmenus.cpp index 30b51a4e..e3e6b6f4 100755 --- a/amxmodx/newmenus.cpp +++ b/amxmodx/newmenus.cpp @@ -458,7 +458,7 @@ const char *Menu::GetTextString(int player, page_t page, int &keys) _snprintf(buffer, sizeof(buffer)-1, m_AutoColors ? "\\r%d. \\w%s\n" : "%d. %s\n", - option, + option == 10 ? 0 : option, m_OptNames[abs(MENU_BACK)].c_str() ); m_Text.append(buffer); @@ -473,7 +473,7 @@ const char *Menu::GetTextString(int player, page_t page, int &keys) _snprintf(buffer, sizeof(buffer)-1, m_AutoColors ? "\\r%d. \\w%s\n" : "%d. %s\n", - option, + option == 10 ? 0 : option, m_OptNames[abs(MENU_MORE)].c_str() ); m_Text.append(buffer); @@ -488,7 +488,7 @@ const char *Menu::GetTextString(int player, page_t page, int &keys) _snprintf(buffer, sizeof(buffer)-1, m_AutoColors ? "\\r%d. \\w%s\n" : "%d. %s\n", - option, + option == 10 ? 0 : option, m_OptNames[abs(MENU_EXIT)].c_str() ); m_Text.append(buffer);