[Scummvm-git-logs] scummvm master -> 062187b665f67e12d6af7acb0a6be43366995d6e
dreammaster
noreply at scummvm.org
Sun Jun 12 23:31:44 UTC 2022
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:
062187b665 CHEWY: Fix selecting consolue buttons in room 4
Commit: 062187b665f67e12d6af7acb0a6be43366995d6e
https://github.com/scummvm/scummvm/commit/062187b665f67e12d6af7acb0a6be43366995d6e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2022-06-12T16:31:32-07:00
Commit Message:
CHEWY: Fix selecting consolue buttons in room 4
Hotspot refactoring got rid of mouse offsets the original used,
so I fixed the areas associated with each button to compensate.
Changed paths:
engines/chewy/rooms/room04.cpp
diff --git a/engines/chewy/rooms/room04.cpp b/engines/chewy/rooms/room04.cpp
index f9a8c03ff96..93dc58c8678 100644
--- a/engines/chewy/rooms/room04.cpp
+++ b/engines/chewy/rooms/room04.cpp
@@ -43,10 +43,11 @@ int16 Room4::comp_probe() {
{ 188, 101 }
};
- static const Common::Rect consoleHotspots[] = {
- { 99, 165, 160, 206 },
- { 167, 166, 211, 200 },
- { 218, 161, 279, 200 }
+ // This can't be static because it makes them global objects
+ const Common::Rect CONSOLE_HOTSPOTS[] = {
+ { 80, 140, 120, 175 },
+ { 140, 140, 170, 175 },
+ { 195, 140, 235, 175 }
};
cur_2_inventory();
@@ -64,7 +65,7 @@ int16 Room4::comp_probe() {
while (!endLoop) {
mouseAction();
if (_G(mouseLeftClick)) {
- switch (_G(in)->findHotspot(consoleHotspots)) {
+ switch (_G(in)->findHotspot(CONSOLE_HOTSPOTS)) {
case 0:
if (curX > 0)
--curX;
More information about the Scummvm-git-logs
mailing list