(svn r12989) -Codechange: move ViewportSign to viewport_type.h.

This commit is contained in:
rubidium 2008-05-07 13:18:33 +00:00
parent 0cfd2baa3c
commit cd7c99452f
9 changed files with 27 additions and 8 deletions

View File

@ -1495,6 +1495,14 @@
RelativePath=".\..\src\tile_type.h"
>
</File>
<File
RelativePath=".\..\src\tilehighlight_func.h"
>
</File>
<File
RelativePath=".\..\src\tilehighlight_type.h"
>
</File>
<File
RelativePath=".\..\src\timetable.h"
>

View File

@ -1492,6 +1492,14 @@
RelativePath=".\..\src\tile_type.h"
>
</File>
<File
RelativePath=".\..\src\tilehighlight_func.h"
>
</File>
<File
RelativePath=".\..\src\tilehighlight_type.h"
>
</File>
<File
RelativePath=".\..\src\timetable.h"
>

View File

@ -299,6 +299,8 @@ tgp.h
thread.h
tile_cmd.h
tile_type.h
tilehighlight_func.h
tilehighlight_type.h
timetable.h
town.h
town_type.h

View File

@ -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();

View File

@ -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,

View File

@ -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)

View File

@ -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,

View File

@ -32,6 +32,7 @@
#include "settings_type.h"
#include "newgrf_station.h"
#include "oldpool_func.h"
#include "viewport_func.h"
#include "table/strings.h"

View File

@ -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)