Skip to content

Commit

Permalink
- Fixed compilation with old gcc and clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 authored and madame-rachelle committed May 22, 2019
1 parent a279908 commit afa644f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/maploader/usdf.cpp
Expand Up @@ -568,7 +568,7 @@ class USDFParser : public UDMFParserBase
else
{
nameToIndex[key] = i;
DPrintf(DMSG_NOTIFY, "GZSDF linker: Assigning pagename '%s' to node %i\n", key, i);
DPrintf(DMSG_NOTIFY, "GZSDF linker: Assigning pagename '%s' to node %i\n", key.GetChars(), i);
}
usedstrings = true;
}
Expand All @@ -584,7 +584,7 @@ class USDFParser : public UDMFParserBase
if (nameToIndex.CheckKey(itemLinkKey))
{
Level->StrifeDialogues[i]->ItemCheckNode = nameToIndex[itemLinkKey] + 1;
DPrintf(DMSG_NOTIFY, "GZSDF linker: Item Link '%s' in node %i was index %i\n", itemLinkKey, i, nameToIndex[itemLinkKey]);
DPrintf(DMSG_NOTIFY, "GZSDF linker: Item Link '%s' in node %i was index %i\n", itemLinkKey.GetChars(), i, nameToIndex[itemLinkKey]);
}
else
Printf("Warning! Reference to non-existent item-linked dialogue page name '%s' in page %i!\n", Level->StrifeDialogues[i]->ItemCheckNodeName.GetChars(), i);
Expand All @@ -600,7 +600,7 @@ class USDFParser : public UDMFParserBase
if (nameToIndex.CheckKey(key))
{
NodeCheck->NextNode = nameToIndex[key] + 1;
DPrintf(DMSG_NOTIFY, "GZSDF linker: Nextpage Link '%s' in node %i was index %i\n", key, i, nameToIndex[key]);
DPrintf(DMSG_NOTIFY, "GZSDF linker: Nextpage Link '%s' in node %i was index %i\n", key.GetChars(), i, nameToIndex[key]);
}
else
Printf("Warning! Reference to non-existent reply-linked dialogue page name '%s' in page %i!\n", NodeCheck->NextNodeName.GetChars(), i);
Expand Down
2 changes: 1 addition & 1 deletion src/p_conversation.cpp
Expand Up @@ -610,7 +610,7 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply
if (nextname.IsEmpty())
Printf ("Next node %u is invalid, no such dialog page\n", next);
else
Printf ("Next node %u ('%s') is invalid, no such dialog page\n", next, nextname);
Printf ("Next node %u ('%s') is invalid, no such dialog page\n", next, nextname.GetChars());
}
}

Expand Down

0 comments on commit afa644f

Please sign in to comment.