SCUMM: Make correcting position of green tank in Sam & Max optional

This commit is contained in:
Torbjörn Andersson 2022-03-17 19:17:30 +01:00 committed by Torbjörn Andersson
parent 4f8653e4f9
commit 52549c1678
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@
*/
#include "common/system.h" // for setFocusRectangle/clearFocusRectangle
#include "common/config-manager.h"
#include "scumm/scumm.h"
#include "scumm/actor.h"
#include "scumm/actor_he.h"
@ -1609,7 +1610,7 @@ void Actor::putActor(int dstX, int dstY, int newRoom) {
// WORKAROUND: The green transparency of the tank in the Hall of Oddities
// is positioned one pixel too far to the left. This appears to be a bug
// in the original game as well.
if (_vm->_game.id == GID_SAMNMAX && newRoom == 16 && _number == 5 && dstX == 235 && dstY == 236)
if (_vm->_game.id == GID_SAMNMAX && newRoom == 16 && _number == 5 && dstX == 235 && dstY == 236 && ConfMan.getBool("enable_enhancements"))
dstX++;
_pos.x = dstX;

View File

@ -229,7 +229,7 @@ const ExtraGuiOptions ScummMetaEngineDetection::getExtraGuiOptions(const Common:
const Common::String guiOptions = parseGameGUIOptions(guiOptionsString);
const Common::Platform platform = Common::parsePlatform(ConfMan.get("platform", target));
if (target.empty() || gameid == "monkey" || gameid == "monkey2") {
if (target.empty() || gameid == "monkey" || gameid == "monkey2" || gameid == "samnmax") {
options.push_back(enableEnhancements);
}