(svn r11827) -Codechange: do not include enum_type.hpp unnecessary.
--- a/src/fileio.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/fileio.h Sun Jan 13 00:28:01 2008 +0000
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include "core/enum_type.hpp"
void FioSeekTo(uint32 pos, int mode);
void FioSeekToFile(uint8 slot, uint32 pos);
--- a/src/openttd.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/openttd.h Sun Jan 13 00:28:01 2008 +0000
@@ -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 @@
INVALID_TRANSPORT = 0xff,
};
-/** Define basic enum properties */
-template <> struct EnumPropsT<TransportType> : MakeEnumPropsT<TransportType, byte, TRANSPORT_BEGIN, TRANSPORT_END, INVALID_TRANSPORT> {};
-typedef TinyEnumT<TransportType> TransportTypeByte;
-
/* Display Options */
enum {
DO_SHOW_TOWN_NAMES = 0,
--- a/src/pathfind.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/pathfind.h Sun Jan 13 00:28:01 2008 +0000
@@ -55,7 +55,7 @@
TrackdirByte the_dir;
- TransportTypeByte tracktype;
+ TransportType tracktype;
uint sub_type;
byte var2;
--- a/src/player_type.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/player_type.h Sun Jan 13 00:28:01 2008 +0000
@@ -5,6 +5,8 @@
#ifndef PLAYER_TYPE_H
#define PLAYER_TYPE_H
+#include "core/enum_type.hpp"
+
/**
* Enum for all players/owners.
*/
--- a/src/rail_type.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/rail_type.h Sun Jan 13 00:28:01 2008 +0000
@@ -5,6 +5,8 @@
#ifndef RAIL_TYPE_H
#define RAIL_TYPE_H
+#include "core/enum_type.hpp"
+
/**
* Enumeration for all possible railtypes.
*
--- a/src/table/namegen.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/table/namegen.h Sun Jan 13 00:28:01 2008 +0000
@@ -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 ",
--- a/src/track_type.h Sun Jan 13 00:14:29 2008 +0000
+++ b/src/track_type.h Sun Jan 13 00:28:01 2008 +0000
@@ -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