From: xangelo Date: Tue, 25 Jul 2023 19:43:42 +0000 (-0400) Subject: fix: display the image from the destination city at 50% progress X-Git-Tag: v0.2.0~9 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=084353ae11c5609e3ae424679ca22549177046a0;p=risinglegends.git fix: display the image from the destination city at 50% progress --- 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', {