diff options
author | Eugene Sandulenko | 2016-02-02 20:04:37 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:12:57 +0100 |
commit | 6e3cd0bcb27c82dd042c191ff65f211cfc136094 (patch) | |
tree | 84366b8019cd576520c859de4b675d79e92a75c8 /engines/wage/script.cpp | |
parent | 12f02969beb3b16f1f9f7b887a622ff5ff018dfc (diff) | |
download | scummvm-rg350-6e3cd0bcb27c82dd042c191ff65f211cfc136094.tar.gz scummvm-rg350-6e3cd0bcb27c82dd042c191ff65f211cfc136094.tar.bz2 scummvm-rg350-6e3cd0bcb27c82dd042c191ff65f211cfc136094.zip |
WAGE: Better processing of direction abbreviations
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r-- | engines/wage/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index bc43f2978b..1ee669af18 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -164,13 +164,13 @@ bool Script::execute(World *world, int loopCount, Common::String *inputText, Des _handled = true; } else if (!input.empty()) { input.toLowercase(); - if (input.equals("n") || input.contains("north")) { + if (input.contains("north")) { _handled = _engine->handleMoveCommand(NORTH, "north"); - } else if (input.equals("e") || input.contains("east")) { + } else if (input.contains("east")) { _handled = _engine->handleMoveCommand(EAST, "east"); - } else if (input.equals("s") || input.contains("south")) { + } else if (input.contains("south")) { _handled = _engine->handleMoveCommand(SOUTH, "south"); - } else if (input.equals("w") || input.contains("west")) { + } else if (input.contains("west")) { _handled = _engine->handleMoveCommand(WEST, "west"); } else if (input.hasPrefix("take ")) { _handled = _engine->handleTakeCommand(&input.c_str()[5]); |