mirror of https://github.com/OpenTTD/OpenTTD
(svn r18679) -Fix (r16993): tile area of waypoints wasn't correctly given to NewGRFs in case of multi tile waypoints
parent
0bc292056d
commit
936477c323
|
@ -394,7 +394,6 @@ void Station::GetTileArea(TileArea *ta, StationType type) const
|
||||||
|
|
||||||
case STATION_DOCK:
|
case STATION_DOCK:
|
||||||
case STATION_OILRIG:
|
case STATION_OILRIG:
|
||||||
case STATION_BUOY:
|
|
||||||
ta->tile = this->dock_tile;
|
ta->tile = this->dock_tile;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -33,16 +33,18 @@ void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
|
||||||
void Waypoint::GetTileArea(TileArea *ta, StationType type) const
|
void Waypoint::GetTileArea(TileArea *ta, StationType type) const
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case STATION_BUOY:
|
|
||||||
case STATION_WAYPOINT:
|
case STATION_WAYPOINT:
|
||||||
|
*ta = this->train_station;
|
||||||
|
return;
|
||||||
|
|
||||||
|
case STATION_BUOY:
|
||||||
|
ta->tile = this->xy;
|
||||||
|
ta->w = 1;
|
||||||
|
ta->h = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: NOT_REACHED();
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
ta->tile = this->xy;
|
|
||||||
ta->w = 1;
|
|
||||||
ta->h = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Waypoint::~Waypoint()
|
Waypoint::~Waypoint()
|
||||||
|
|
Loading…
Reference in New Issue