mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
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:
parent
d4304c3bde
commit
f4e9edccb9
1 changed files with 2 additions and 13 deletions
|
@ -522,19 +522,8 @@ static void ParseReplies (FStrifeDialogueReply **replyptr, Response *responses)
|
|||
|
||||
// If the first item check has a positive amount required, then
|
||||
// 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->NeedsGold = false;
|
||||
}
|
||||
reply->Reply = copystring (rsp->Reply);
|
||||
reply->NeedsGold = (rsp->Count[0] > 0);
|
||||
|
||||
// QuickYes messages are shown when you meet the item checks.
|
||||
// QuickNo messages are shown when you don't.
|
||||
|
|
Loading…
Reference in a new issue