aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-waypoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/ai-waypoint.cpp')
-rw-r--r--engines/hdb/ai-waypoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/ai-waypoint.cpp b/engines/hdb/ai-waypoint.cpp
index cbeb246859..702e41b243 100644
--- a/engines/hdb/ai-waypoint.cpp
+++ b/engines/hdb/ai-waypoint.cpp
@@ -429,8 +429,8 @@ void AI::drawWayPoints() {
int x = _waypoints[i].x * kTileWidth;
int y = _waypoints[i].y * kTileHeight;
- if (x > mapX - 32 && (x < (mapX + kScreenWidth)) &&
- y > mapY - 32 && (y < (mapY + kScreenHeight)))
+ if (x > mapX - 32 && (x < (mapX + g_hdb->_screenWidth)) &&
+ y > mapY - 32 && (y < (mapY + g_hdb->_screenHeight)))
_waypointGfx[anim]->drawMasked(x - mapX, y - mapY, alpha);
}