mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
SCUMM: Fix bug #1013617
(ZAK FM-TOWNS: Wrong verb ('Teleport To') shown)
This commit is contained in:
parent
d7f877b3ab
commit
4b98d6a9e4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user