From 136c8aba74be021a6ab3b5b45a679376adc52b1d Mon Sep 17 00:00:00 2001 From: Andrew Borba Date: Wed, 16 Dec 2009 18:13:35 -0800 Subject: [PATCH] Enlarged display string limits of yes/no phrases. --- src/zr/config.inc | 2 +- src/zr/weapons/menu_weapons.inc | 2 +- src/zr/weapons/zmarket.inc | 4 ++-- src/zr/zcookies.inc | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/zr/config.inc b/src/zr/config.inc index 40aa171..3db5025 100644 --- a/src/zr/config.inc +++ b/src/zr/config.inc @@ -914,7 +914,7 @@ stock bool:ConfigSettingToBool(const String:option[]) * * @param bOption True/false value to be converted to "yes/on"/"no/off", respectively. * @param option Destination string buffer to store "yes/on" or "no/off" in. - * @param maxlen Length of destination string buffer (wont't be more than 4). + * @param maxlen Length of destination string buffer. * @param yesno When true, returns "yes/no", false returns "on/off." * @param target The target to use as translation language. */ diff --git a/src/zr/weapons/menu_weapons.inc b/src/zr/weapons/menu_weapons.inc index 3ade571..cc1a9df 100644 --- a/src/zr/weapons/menu_weapons.inc +++ b/src/zr/weapons/menu_weapons.inc @@ -362,7 +362,7 @@ WeaponsMenuZMarket(client) new Handle:menu_weapons_market = CreateMenu(WeaponsMenuZMarketHandle); // Get "yes" or "no" settings from respective cvar. - decl String:buyzonesetting[8]; + decl String:buyzonesetting[MENU_LINE_SMALL_LENGTH]; ConfigBoolToSetting(GetConVarBool(g_hCvarsList[CVAR_WEAPONS_ZMARKET_BUYZONE]), buyzonesetting, sizeof(buyzonesetting), true, client); SetGlobalTransTarget(client); diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 493518e..9210785 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -281,7 +281,7 @@ bool:ZMarketMenuMain(client) decl String:weaponslist[MENU_LINE_REG_LENGTH]; // Get auto-rebuy setting. - decl String:rebuyautosetting[8]; + decl String:rebuyautosetting[MENU_LINE_SMALL_LENGTH]; ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), rebuyautosetting, sizeof(rebuyautosetting), true, client); // Format menu options. @@ -418,7 +418,7 @@ bool:ZMarketMenuLoadout(client) } // Copy "Yes/No" to NVGs string. - decl String:nvgsbool[8]; + decl String:nvgsbool[MENU_LINE_SMALL_LENGTH]; ConfigBoolToSetting(bool:rebuyweapons[Slot_NVGs][0], nvgsbool, sizeof(nvgsbool), true, client); decl String:title[MENU_LINE_HUGE_LENGTH]; diff --git a/src/zr/zcookies.inc b/src/zr/zcookies.inc index be200e9..3daefae 100644 --- a/src/zr/zcookies.inc +++ b/src/zr/zcookies.inc @@ -47,9 +47,9 @@ ZCookiesMenuMain(client) // Make client global translations target. SetGlobalTransTarget(client); - decl String:autorebuyenabled[4]; - decl String:zhpenabled[4]; - decl String:overlayenabled[4]; + decl String:autorebuyenabled[MENU_LINE_SMALL_LENGTH]; + decl String:zhpenabled[MENU_LINE_SMALL_LENGTH]; + decl String:overlayenabled[MENU_LINE_SMALL_LENGTH]; // Get the current toggle state of the cookies. ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), autorebuyenabled, sizeof(autorebuyenabled), false, client);