Skip to content

Commit

Permalink
Merge pull request #14 from MaximumWoahverdrive/main
Browse files Browse the repository at this point in the history
Fix downloaded maps being saved as ".Map.Gbx" overwriting eachother
  • Loading branch information
GreepTheSheep authored Feb 6, 2023
2 parents d9d2a59 + 3919566 commit 2926807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/MX/Methods.as
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace MX
}
mapDownloadInProgress = false;

if (fileName.Length > 0) fileName = map.TrackID + " - " + map.Name;
if (fileName.Length == 0) fileName = map.TrackID + " - " + map.Name;
netMap.SaveToFile(mxDLFolder + "/" + fileName + ".Map.Gbx");
print("Map downloaded to " + mxDLFolder + "/" + fileName + ".Map.Gbx");
} catch {
Expand Down

0 comments on commit 2926807

Please sign in to comment.