Wrap altered coords in quotes

Breaks waypoint loading otherwise
This commit is contained in:
BCDeshiG 2022-11-20 16:45:34 +00:00
parent 7ee994a55c
commit 68eb643be5
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def parsePC(oldWayFile):
# Round origin coords to 1 decimal place # Round origin coords to 1 decimal place
originCoords = waydict["origin"].strip("'").split() originCoords = waydict["origin"].strip("'").split()
originCoords = [round(float(coord), 1) for coord in originCoords] originCoords = [round(float(coord), 1) for coord in originCoords]
waydict["origin"] = str(originCoords[0]) + " " + str(originCoords[1]) + " " + str(originCoords[2]) waydict["origin"] = "'" + str(originCoords[0]) + " " + str(originCoords[1]) + " " + str(originCoords[2]) + "'"
# Replace id 0 # Replace id 0
if waydict["id"] == "0": if waydict["id"] == "0":
waydict["id"] = "255" # I sure do hope nobody has this many waypoints waydict["id"] = "255" # I sure do hope nobody has this many waypoints