(svn r18679) -Fix (r16993): tile area of waypoints wasn't correctly given to NewGRFs in case of multi tile waypoints

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 15 years ago
parent 0bc292056d
commit 936477c323

@ -394,7 +394,6 @@ void Station::GetTileArea(TileArea *ta, StationType type) const
case STATION_DOCK:
case STATION_OILRIG:
case STATION_BUOY:
ta->tile = this->dock_tile;
break;

@ -33,16 +33,18 @@ void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
void Waypoint::GetTileArea(TileArea *ta, StationType type) const
{
switch (type) {
case STATION_BUOY:
case STATION_WAYPOINT:
*ta = this->train_station;
return;
case STATION_BUOY:
ta->tile = this->xy;
ta->w = 1;
ta->h = 1;
break;
default: NOT_REACHED();
}
ta->tile = this->xy;
ta->w = 1;
ta->h = 1;
}
Waypoint::~Waypoint()

Loading…
Cancel
Save