From 6f03401026e56d0a72392f8266ec6dc414b0e090 Mon Sep 17 00:00:00 2001 From: Sander van Vliet Date: Tue, 5 Dec 2023 20:47:07 +0100 Subject: [PATCH] Fix rename booboo --- src/RoadCaptain/UseCases/HandleZwiftMessagesUseCase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RoadCaptain/UseCases/HandleZwiftMessagesUseCase.cs b/src/RoadCaptain/UseCases/HandleZwiftMessagesUseCase.cs index 61a5dea0..60ab9f52 100644 --- a/src/RoadCaptain/UseCases/HandleZwiftMessagesUseCase.cs +++ b/src/RoadCaptain/UseCases/HandleZwiftMessagesUseCase.cs @@ -79,7 +79,7 @@ public void Execute(CancellationToken token) // TODO: Figure out how to get the WorldId as quickly as possible and put it in the game state var worldId = _route?.World?.ZwiftId ?? ZwiftWorldId.Unknown; - var gameCoordinate = new GameCoordinate(riderPosition.X, riderPosition.Y, riderPosition.Altitude, worldId); + var gameCoordinate = new GameCoordinate(riderPosition.X, riderPosition.Y, riderPosition.Z, worldId); // Convert from Zwift game coordinates to a lat/lon coordinate var position = gameCoordinate.ToTrackPoint();