Skip to content

Commit

Permalink
Fixed the simple parser to be able to translate words using the .lang…
Browse files Browse the repository at this point in the history
… file again
  • Loading branch information
Unknown authored and Unknown committed Feb 4, 2019
1 parent 60a0d2c commit 45030d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Leroys_Quest/src/Parsers/SimpleParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace LeroysQuest {
while (ss >> word)
{
/* Give langSpec a word, it will translate it to a command word */
//word = langSpec.Translate(word);
word = langSpec.Translate(word);

if (langSpec.isActionWord(word))
{
Expand Down
4 changes: 2 additions & 2 deletions Leroys_Quest/src/Systems/LanguageSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ namespace LeroysQuest {
*/
if (m_LangMap.find(word) == m_LangMap.end())
{
/* The word is not in the map, map the word to nothing */
return "";
/* The word is not in the map, map the word to itself */
return word;
}
else
{
Expand Down

0 comments on commit 45030d5

Please sign in to comment.