equal
deleted
inserted
replaced
2514 } else if ((v->u.rail.track & TRACK_BIT_MASK) != TRACK_BIT_NONE) { |
2514 } else if ((v->u.rail.track & TRACK_BIT_MASK) != TRACK_BIT_NONE) { |
2515 TryReserveRailTrack(v->tile, TrackBitsToTrack(v->u.rail.track)); |
2515 TryReserveRailTrack(v->tile, TrackBitsToTrack(v->u.rail.track)); |
2516 } |
2516 } |
2517 } |
2517 } |
2518 } |
2518 } |
|
2519 |
|
2520 /* Give owners to waypoints, based on rail tracks it is sitting on. |
|
2521 * If none is available, specify OWNER_NONE */ |
|
2522 Waypoint *wp; |
|
2523 Owner owner; |
|
2524 FOR_ALL_WAYPOINTS(wp) { |
|
2525 owner = GetTileOwner(wp->xy); |
|
2526 wp->owner = IsValidPlayerID(owner) ? owner : OWNER_NONE; |
|
2527 } |
2519 } |
2528 } |
2520 |
2529 |
2521 GamelogPrintDebug(1); |
2530 GamelogPrintDebug(1); |
2522 |
2531 |
2523 return InitializeWindowsAndCaches(); |
2532 return InitializeWindowsAndCaches(); |