Skip to content

Commit

Permalink
SCUMM: Fix bug #1013617
Browse files Browse the repository at this point in the history
(ZAK FM-TOWNS: Wrong verb ('Teleport To') shown)
  • Loading branch information
athrxx authored and unknown committed May 28, 2011
1 parent d7f877b commit 4b98d6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/scumm/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,8 @@ int ScummEngine::convertVerbMessage(byte *dst, int dstSize, int var) {
num = readVar(var);
if (num) {
for (k = 1; k < _numVerbs; k++) {
if (num == _verbs[k].verbid && !_verbs[k].type && !_verbs[k].saveid) {
// Fix ZAK FM-TOWNS bug #1013617 by emulating exact (inconsistant?) behavior of the original code
if (num == _verbs[k].verbid && !_verbs[k].type && (!_verbs[k].saveid || (_game.version == 3 && _game.platform == Common::kPlatformFMTowns))) {
const byte *ptr = getResourceAddress(rtVerb, k);
return convertMessageToString(ptr, dst, dstSize);
}
Expand Down

0 comments on commit 4b98d6a

Please sign in to comment.