From 7079b30b3f24a0915e4adb9d2871247f2fd4ffa4 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 15 May 2025 16:09:34 -0500 Subject: [PATCH] fix bug where you board a boat in another outdoor section --- src/game/boe.text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/boe.text.cpp b/src/game/boe.text.cpp index 2ba142af..2aa7a3ac 100644 --- a/src/game/boe.text.cpp +++ b/src/game/boe.text.cpp @@ -857,9 +857,10 @@ cVehicle* town_boat_there(location where) { } cVehicle* out_boat_there(location where) { where = global_to_local(where); + location sector = {univ.party.outdoor_corner.x + univ.party.i_w_c.x, univ.party.outdoor_corner.y + univ.party.i_w_c.y}; for(short i = 0; i < univ.party.boats.size(); i++) if((univ.party.boats[i].exists) && (where == univ.party.boats[i].loc) - && (univ.party.boats[i].which_town == 200)) + && (univ.party.boats[i].which_town == 200) && (sector == univ.party.boats[i].sector)) return &univ.party.boats[i]; return nullptr; }