From b896abf29bb60aae2e1d024ffabf0b14067d7e6c Mon Sep 17 00:00:00 2001 From: ALONSO Laurent Date: Thu, 14 Jul 2022 13:59:56 +0200 Subject: [PATCH] try to avoid loosing boat/horse outdoor... nature... --- src/game/boe.actions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index a37be2e6..14cd9d16 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -2749,7 +2749,7 @@ static void run_waterfalls(short mode){ // mode 0 - town, 1 - outdoors univ.party.boats[univ.party.in_boat].which_town = univ.party.town_num; }else{ univ.party.boats[univ.party.in_boat].which_town = 200; - univ.party.boats[univ.party.in_boat].loc = univ.party.out_loc; + univ.party.boats[univ.party.in_boat].loc = global_to_local(univ.party.out_loc); univ.party.boats[univ.party.in_boat].sector.x = univ.party.outdoor_corner.x + univ.party.i_w_c.x; univ.party.boats[univ.party.in_boat].sector.y = univ.party.outdoor_corner.y + univ.party.i_w_c.y; } @@ -2930,7 +2930,7 @@ bool outd_move_party(location destination,bool forced) { } if(univ.party.in_horse >= 0) { univ.party.horses[univ.party.in_horse].which_town = 200; - univ.party.horses[univ.party.in_horse].loc = univ.party.out_loc; + univ.party.horses[univ.party.in_horse].loc = global_to_local(univ.party.out_loc); univ.party.horses[univ.party.in_horse].sector.x = univ.party.outdoor_corner.x + univ.party.i_w_c.x; univ.party.horses[univ.party.in_horse].sector.y = univ.party.outdoor_corner.y + univ.party.i_w_c.y;