(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords

This commit is contained in:
rubidium
2009-07-18 08:41:58 +00:00
parent f129634f52
commit 8c17c6cb2b
7 changed files with 11 additions and 17 deletions

View File

@@ -33,6 +33,7 @@
#include "elrail_func.h"
#include "station_base.h"
#include "roadstop_base.h"
#include "waypoint.h"
#include "table/strings.h"
@@ -384,11 +385,15 @@ void Station::UpdateVirtCoord()
/** Update the virtual coords needed to draw the station sign for all stations. */
void UpdateAllStationVirtCoords()
{
Station *st;
BaseStation *st;
FOR_ALL_STATIONS(st) {
st->UpdateVirtCoord();
}
FOR_ALL_WAYPOINTS(st) {
st->UpdateVirtCoord();
}
}
/** Get a mask of the cargo types that the station accepts.