From cd7c99452f0fe99f0ad8ae6826c6e9892b137690 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 7 May 2008 13:18:33 +0000 Subject: (svn r12989) -Codechange: move ViewportSign to viewport_type.h. --- src/functions.h | 2 -- src/openttd.h | 6 ------ src/signs_base.h | 1 + src/viewport_type.h | 6 ++++++ src/waypoint.cpp | 1 + src/waypoint.h | 1 + 6 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/functions.h b/src/functions.h index e2fe87997..e0d5ee390 100644 --- a/src/functions.h +++ b/src/functions.h @@ -58,8 +58,6 @@ void AskExitToGameMenu(); void RedrawAutosave(); -void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str); - int ttd_main(int argc, char* argv[]); void HandleExitGameRequest(); diff --git a/src/openttd.h b/src/openttd.h index de17ccd5d..1f3468159 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -54,12 +54,6 @@ enum { DO_WAYPOINTS = 6, }; -struct ViewportSign { - int32 left; - int32 top; - byte width_1, width_2; -}; - enum { SORT_ASCENDING = 0, SORT_DESCENDING = 1, diff --git a/src/signs_base.h b/src/signs_base.h index 3fd945b5a..e27441cb4 100644 --- a/src/signs_base.h +++ b/src/signs_base.h @@ -6,6 +6,7 @@ #define SIGNS_BASE_H #include "signs_type.h" +#include "viewport_type.h" #include "oldpool.h" DECLARE_OLD_POOL(Sign, Sign, 2, 16000) diff --git a/src/viewport_type.h b/src/viewport_type.h index e14862e65..166ca6593 100644 --- a/src/viewport_type.h +++ b/src/viewport_type.h @@ -24,6 +24,12 @@ struct ViewPort { ZoomLevel zoom; }; +struct ViewportSign { + int32 left; + int32 top; + byte width_1, width_2; +}; + enum { ZOOM_IN = 0, ZOOM_OUT = 1, diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 99e099c07..8cf8880c1 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -32,6 +32,7 @@ #include "settings_type.h" #include "newgrf_station.h" #include "oldpool_func.h" +#include "viewport_func.h" #include "table/strings.h" diff --git a/src/waypoint.h b/src/waypoint.h index a6ba958ae..36014f7ca 100644 --- a/src/waypoint.h +++ b/src/waypoint.h @@ -11,6 +11,7 @@ #include "command_type.h" #include "station_type.h" #include "town_type.h" +#include "viewport_type.h" DECLARE_OLD_POOL(Waypoint, Waypoint, 3, 8000) -- cgit v1.2.3-70-g09d2