summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index bb1db7152..c6e98c612 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -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.