diff options
author | rubidium <rubidium@openttd.org> | 2009-07-18 08:41:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-18 08:41:58 +0000 |
commit | 8c17c6cb2bba037e0e7cbe5f97bc2e025bed9a6f (patch) | |
tree | 6925fe6d155eb8661a45e2a66524d94de520076f /src/station_cmd.cpp | |
parent | f129634f524b38bcb00f5e7b24ccd8a982a16ca9 (diff) | |
download | openttd-8c17c6cb2bba037e0e7cbe5f97bc2e025bed9a6f.tar.xz |
(svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 7 |
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. |