(svn r19141) -Fix [FS#3619] (r18421): look-ahead for multitile waypoints 'made up' data that shouldn't go into the cache, causing desyncs in MP

This commit is contained in:
rubidium
2010-02-15 23:55:04 +00:00
parent b09f12f7ca
commit 5750163213
3 changed files with 22 additions and 2 deletions

View File

@@ -40,6 +40,15 @@ struct Waypoint : SpecializedStation<Waypoint, true> {
{
return 1;
}
/**
* Is this a single tile waypoint?
* @return true if it is.
*/
FORCEINLINE bool IsSingleTile() const
{
return (this->facilities & FACIL_TRAIN) != 0 && this->train_station.w == 1 && this->train_station.h == 1;
}
};
#define FOR_ALL_WAYPOINTS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Waypoint, var)