fix xmlrpc altitude sent

This commit is contained in:
Beu 2023-09-24 18:57:42 +02:00
parent b9fcc221b4
commit 5938c7e79f

View File

@ -370,7 +370,8 @@ if (Now > Map_NextUpdate) {
if (Net_ClimbTheMap_AltitudeOfPB < Altitude) {
Net_ClimbTheMap_AltitudeOfPB = Altitude;
Map_XmlRpc_AltitudePerLogin_Queue[Player.User.Login] = Altitude;
// Map_XmlRpc_AltitudePerLogin_Queue is relative with the Start waypoint
Map_XmlRpc_AltitudePerLogin_Queue[Player.User.Login] = Altitude - Net_ClimbTheMap_AltitudeOfWaypoints.X;
}
AltitudePerName[Player.User.Name] = Altitude;