From 061924528005321900ab46a0021f93d092496b46 Mon Sep 17 00:00:00 2001 From: John Palomo Jr Date: Sun, 7 Feb 2016 03:21:18 -0500 Subject: [PATCH] Fixed: ValueText didn't read language strings from OptionValues when using the third parameter. --- src/menu/playermenu.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/menu/playermenu.cpp b/src/menu/playermenu.cpp index a716d98f1..184b5a465 100644 --- a/src/menu/playermenu.cpp +++ b/src/menu/playermenu.cpp @@ -324,7 +324,12 @@ void FValueTextItem::Drawer(bool selected) screen->DrawText(mFont, selected? OptionSettings.mFontColorSelection : mFontColor, mXpos, mYpos, text, DTA_Clean, true, TAG_DONE); int x = mXpos + mFont->StringWidth(text) + 8; - if (mSelections.Size() > 0) screen->DrawText(mFont, mFontColor2, x, mYpos, mSelections[mSelection], DTA_Clean, true, TAG_DONE); + if (mSelections.Size() > 0) + { + const char *mOptValue = mSelections[mSelection]; + if (*mOptValue == '$') mOptValue = GStrings(mOptValue + 1); + screen->DrawText(mFont, mFontColor2, x, mYpos, mOptValue, DTA_Clean, true, TAG_DONE); + } } //=============================================================================