Don't display the cost in dialogues twice

- Fixed: Commit 75dd5503, which was to enable the use of LANGUAGE
  substitutions for conversation items with a cost attached, neglected to
  remove the original code that attached the cost to the end of the item,
  so the cost got added twice.
This commit is contained in:
Randy Heit 2013-11-19 19:55:57 -06:00
parent d4304c3bde
commit f4e9edccb9
1 changed files with 2 additions and 13 deletions

View File

@ -522,19 +522,8 @@ static void ParseReplies (FStrifeDialogueReply **replyptr, Response *responses)
// If the first item check has a positive amount required, then // If the first item check has a positive amount required, then
// add that to the reply string. Otherwise, use the reply as-is. // add that to the reply string. Otherwise, use the reply as-is.
if (rsp->Count[0] > 0)
{
char moneystr[128];
mysnprintf (moneystr, countof(moneystr), "%s for %u", rsp->Reply, rsp->Count[0]);
reply->Reply = copystring (moneystr);
reply->NeedsGold = true;
}
else
{
reply->Reply = copystring (rsp->Reply); reply->Reply = copystring (rsp->Reply);
reply->NeedsGold = false; reply->NeedsGold = (rsp->Count[0] > 0);
}
// QuickYes messages are shown when you meet the item checks. // QuickYes messages are shown when you meet the item checks.
// QuickNo messages are shown when you don't. // QuickNo messages are shown when you don't.