private void ReadWaypoints()
{
IniSection basic = GetSection("Basic");
if (basic == null || !basic.ReadBool("MultiplayerOnly")) return;
IniSection waypoints = GetOrCreateSection("Waypoints");
foreach (var entry in waypoints.OrderedEntries) {
try {
int num, pos;
if (int.TryParse(entry.Key, out num) && int.TryParse(entry.Value, out pos)) {
int ry = pos / 1000;
int rx = pos - ry * 1000;
Waypoints.Add(new Waypoint {
Number = int.Parse(entry.Key),
Tile = Tiles.GetTileR(rx, ry),
});
}
}
catch {
}
}
}