From a78d73805f467d3ced0a70a1758435498fd1dbac Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 13 Jan 2008 00:28:01 +0000 Subject: [PATCH] (svn r11827) -Codechange: do not include enum_type.hpp unnecessary. --- src/fileio.h | 1 + src/openttd.h | 5 ----- src/pathfind.h | 2 +- src/player_type.h | 2 ++ src/rail_type.h | 2 ++ src/table/namegen.h | 2 +- src/track_type.h | 2 ++ 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/fileio.h b/src/fileio.h index a8dfc56447..d60d8ed2e6 100644 --- a/src/fileio.h +++ b/src/fileio.h @@ -7,6 +7,7 @@ #include #include +#include "core/enum_type.hpp" void FioSeekTo(uint32 pos, int mode); void FioSeekToFile(uint8 slot, uint32 pos); diff --git a/src/openttd.h b/src/openttd.h index aea9a53363..40114baf69 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -8,7 +8,6 @@ #define VARDEF extern #endif -#include "core/enum_type.hpp" #include "strings_type.h" // Forward declarations of structs. @@ -95,10 +94,6 @@ enum TransportType { INVALID_TRANSPORT = 0xff, }; -/** Define basic enum properties */ -template <> struct EnumPropsT : MakeEnumPropsT {}; -typedef TinyEnumT TransportTypeByte; - /* Display Options */ enum { DO_SHOW_TOWN_NAMES = 0, diff --git a/src/pathfind.h b/src/pathfind.h index d01dcc564b..d381b45a4a 100644 --- a/src/pathfind.h +++ b/src/pathfind.h @@ -55,7 +55,7 @@ struct TrackPathFinder { TrackdirByte the_dir; - TransportTypeByte tracktype; + TransportType tracktype; uint sub_type; byte var2; diff --git a/src/player_type.h b/src/player_type.h index 0e183fabe2..bf33923bea 100644 --- a/src/player_type.h +++ b/src/player_type.h @@ -5,6 +5,8 @@ #ifndef PLAYER_TYPE_H #define PLAYER_TYPE_H +#include "core/enum_type.hpp" + /** * Enum for all players/owners. */ diff --git a/src/rail_type.h b/src/rail_type.h index c52e0251b3..73876bd4af 100644 --- a/src/rail_type.h +++ b/src/rail_type.h @@ -5,6 +5,8 @@ #ifndef RAIL_TYPE_H #define RAIL_TYPE_H +#include "core/enum_type.hpp" + /** * Enumeration for all possible railtypes. * diff --git a/src/table/namegen.h b/src/table/namegen.h index a9cc514e52..c9695e3025 100644 --- a/src/table/namegen.h +++ b/src/table/namegen.h @@ -3,7 +3,7 @@ /** @file table/namegen.h Namepart tables for the town name generator */ #include "../stdafx.h" -#include "../openttd.h" +#include "../core/enum_type.hpp" static const char *name_original_english_1[] = { "Great ", diff --git a/src/track_type.h b/src/track_type.h index bd8ccde151..6042bca50d 100644 --- a/src/track_type.h +++ b/src/track_type.h @@ -5,6 +5,8 @@ #ifndef TRACK_TYPE_H #define TRACK_TYPE_H +#include "core/enum_type.hpp" + /** * These are used to specify a single track. * Can be translated to a trackbit with TrackToTrackbit