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

This commit is contained in:
rubidium 2010-01-01 18:10:10 +00:00
parent 0bc292056d
commit 936477c323
2 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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()