aboutsummaryrefslogtreecommitdiff
path: root/simon/verb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simon/verb.cpp')
-rw-r--r--simon/verb.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/simon/verb.cpp b/simon/verb.cpp
index 563089a454..f9785adcd5 100644
--- a/simon/verb.cpp
+++ b/simon/verb.cpp
@@ -319,19 +319,19 @@ void SimonState::handle_unk_hitarea(FillOrCopyStruct *fcs)
void SimonState::setup_hitarea_from_pos(uint x, uint y, uint mode)
{
- if (_game & GAME_SIMON2) {
- if (_bit_array[4] & 0x8000 || y < 134) {
- x += _x_scroll * 8;
- }
- }
-
HitArea *best_ha;
HitArea *ha = _hit_areas;
uint count = ARRAYSIZE(_hit_areas);
uint16 layer = 0;
- const uint16 x_ = x;
+ uint16 x_ = x;
const uint16 y_ = y;
+ if (_game & GAME_SIMON2) {
+ if (_bit_array[4] & 0x8000 || y < 134) {
+ x += _x_scroll * 8;
+ }
+ }
+
best_ha = NULL;
do {