[Scummvm-git-logs] scummvm master -> 806c54b356abd6e743fbc5d6740a9c6161d477d2
bluegr
noreply at scummvm.org
Thu Jul 18 09:36:12 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
806c54b356 DGDS: Add temporary hack for the snake scene in HoC
Commit: 806c54b356abd6e743fbc5d6740a9c6161d477d2
https://github.com/scummvm/scummvm/commit/806c54b356abd6e743fbc5d6740a9c6161d477d2
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-07-18T12:36:01+03:00
Commit Message:
DGDS: Add temporary hack for the snake scene in HoC
Changed paths:
engines/dgds/scene.cpp
diff --git a/engines/dgds/scene.cpp b/engines/dgds/scene.cpp
index 3b3a71f717c..d0c1cd562ca 100644
--- a/engines/dgds/scene.cpp
+++ b/engines/dgds/scene.cpp
@@ -1702,6 +1702,15 @@ void SDSScene::mouseLUp(const Common::Point &pt) {
addInvButtonToHotAreaList();
} else {
debug(" --> exec %d click ops for area %d", area->onLClickOps.size(), area->_num);
+ if ((area->_num == 58 || area->_num == 62) && engine->getScene()->getNum() == 53 && engine->getGameId() == GID_HOC) {
+ // FIXME: Handle gun (crosshair icon, action on snakes)
+ warning("HACK for the snake scene");
+ GDSScene *gds = engine->getGDSScene();
+ gds->setGlobal(126, 1); // kill left snake
+ gds->setGlobal(132, 1); // kill right snake
+ gds->setGlobal(110, 86); // save Kate and open balcony door
+ return;
+ }
int16 addmins = engine->getGameGlobals()->getGameMinsToAddOnLClick();
runOps(area->onLClickOps, addmins);
}
More information about the Scummvm-git-logs
mailing list