From 72aafe9faf823277fe8f0ba36a9cbf6b5ba7f39c Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 8 Aug 2025 20:39:59 -0500 Subject: [PATCH] fix loc_off_act_area for outdoors --- src/game/boe.locutils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/boe.locutils.cpp b/src/game/boe.locutils.cpp index f01f4348..bf0778f7 100644 --- a/src/game/boe.locutils.cpp +++ b/src/game/boe.locutils.cpp @@ -138,8 +138,9 @@ bool loc_off_world(location p1) { } bool loc_off_act_area(location p1) { - if(is_out()) return false; // How should this check be handled? - if((p1.x > univ.town->in_town_rect.left) && (p1.x < univ.town->in_town_rect.right) && + if(is_out() && univ.out->is_on_map(p1)) + return false; + else if((p1.x > univ.town->in_town_rect.left) && (p1.x < univ.town->in_town_rect.right) && (p1.y > univ.town->in_town_rect.top) && (p1.y < univ.town->in_town_rect.bottom)) return false; return true;