(svn r16896) -Codechange: make station spec allocation and station animation functions work for both stations and waypoints

This commit is contained in:
rubidium
2009-07-21 11:11:05 +00:00
parent c63338cd81
commit 43eda3dfbf
6 changed files with 126 additions and 54 deletions

View File

@@ -44,6 +44,21 @@ 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:
break;
default: NOT_REACHED();
}
ta->tile = this->xy;
ta->w = 1;
ta->h = 1;
}
Waypoint::~Waypoint()
{
if (CleaningPool()) return;