mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(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:
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…
Reference in New Issue
Block a user