File diff r9983:53ffb06ce8e5 → r9984:8d9ab6e2809b
src/openttd.cpp
Show inline comments
 
@@ -2513,25 +2513,25 @@ bool AfterLoadGame()
 
					TryReserveRailTrack(v->tile, DiagDirToDiagTrack(GetTunnelBridgeDirection(v->tile)));
 
				} else if ((v->u.rail.track & TRACK_BIT_MASK) != TRACK_BIT_NONE) {
 
					TryReserveRailTrack(v->tile, TrackBitsToTrack(v->u.rail.track));
 
				}
 
			}
 
		}
 

	
 
		/* Give owners to waypoints, based on rail tracks it is sitting on.
 
		 * If none is available, specify OWNER_NONE */
 
		Waypoint *wp;
 
		Owner owner;
 
		FOR_ALL_WAYPOINTS(wp) {
 
			owner = GetTileOwner(wp->xy);
 
			owner = (IsTileType(wp->xy, MP_RAILWAY) && IsRailWaypoint(wp->xy) ? GetTileOwner(wp->xy) : OWNER_NONE);
 
			wp->owner = IsValidPlayerID(owner) ? owner : OWNER_NONE;
 
		}
 
	}
 

	
 
	GamelogPrintDebug(1);
 

	
 
	return InitializeWindowsAndCaches();
 
}
 

	
 
/** Reload all NewGRF files during a running game. This is a cut-down
 
 * version of AfterLoadGame().
 
 * XXX - We need to reset the vehicle position hash because with a non-empty