From 084353ae11c5609e3ae424679ca22549177046a0 Mon Sep 17 00:00:00 2001 From: xangelo Date: Tue, 25 Jul 2023 15:43:42 -0400 Subject: [PATCH] fix: display the image from the destination city at 50% progress --- src/events/travel/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/travel/server.ts b/src/events/travel/server.ts index 72a4e82..1ceab7e 100644 --- a/src/events/travel/server.ts +++ b/src/events/travel/server.ts @@ -93,7 +93,7 @@ export const nextStep: SocketEvent = { // decide if they will run into anything const travelPlan = await stepForward(api.player.id); - const closest: number = (travelPlan.current_position / travelPlan.total_distance) > 0.5 ? travelPlan.source_id : travelPlan.destination_id; + const closest: number = (travelPlan.current_position / travelPlan.total_distance) > 0.5 ? travelPlan.destination_id : travelPlan.source_id; // send back NOTHING! api.socket.emit('city:travel', { -- 2.25.1