(svn r11827) -Codechange: do not include enum_type.hpp unnecessary.

pull/155/head
rubidium 17 years ago
parent 818979ebe3
commit 72c9b35b11

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

@ -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<TransportType> : MakeEnumPropsT<TransportType, byte, TRANSPORT_BEGIN, TRANSPORT_END, INVALID_TRANSPORT> {};
typedef TinyEnumT<TransportType> TransportTypeByte;
/* Display Options */
enum {
DO_SHOW_TOWN_NAMES = 0,

@ -55,7 +55,7 @@ struct TrackPathFinder {
TrackdirByte the_dir;
TransportTypeByte tracktype;
TransportType tracktype;
uint sub_type;
byte var2;

@ -5,6 +5,8 @@
#ifndef PLAYER_TYPE_H
#define PLAYER_TYPE_H
#include "core/enum_type.hpp"
/**
* Enum for all players/owners.
*/

@ -5,6 +5,8 @@
#ifndef RAIL_TYPE_H
#define RAIL_TYPE_H
#include "core/enum_type.hpp"
/**
* Enumeration for all possible railtypes.
*

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

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

Loading…
Cancel
Save