summaryrefslogtreecommitdiff
path: root/src/newgrf.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-08 09:07:40 +0000
committerrubidium <rubidium@openttd.org>2010-08-08 09:07:40 +0000
commit412bb37f595756eea74d02d3163d7043f84cf93a (patch)
tree94c5378291258d9973500e2d1109a5bf0240bbe5 /src/newgrf.h
parent5f874b90f92c3f7f6578c5f41eef4dce0107f9e3 (diff)
downloadopenttd-412bb37f595756eea74d02d3163d7043f84cf93a.tar.xz
(svn r20409) -Codechange: reduce the number of includes needed by newgrf.h
Diffstat (limited to 'src/newgrf.h')
-rw-r--r--src/newgrf.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/newgrf.h b/src/newgrf.h
index e9d5b9573..64bfe58df 100644
--- a/src/newgrf.h
+++ b/src/newgrf.h
@@ -12,12 +12,8 @@
#ifndef NEWGRF_H
#define NEWGRF_H
-#include "newgrf_config.h"
#include "cargotype.h"
-#include "industry_type.h"
-#include "station_type.h"
#include "rail_type.h"
-#include "house_type.h"
enum GrfLoadingStage {
GLS_FILESCAN,
@@ -106,10 +102,10 @@ struct GRFFile {
uint sound_offset;
uint16 num_sounds;
- StationSpec **stations;
- HouseSpec **housespec;
- IndustrySpec **industryspec;
- IndustryTileSpec **indtspec;
+ struct StationSpec **stations;
+ struct HouseSpec **housespec;
+ struct IndustrySpec **industryspec;
+ struct IndustryTileSpec **indtspec;
struct AirportSpec **airportspec;
struct AirportTileSpec **airtspec;
@@ -159,7 +155,7 @@ struct GRFLoadedFeatures {
/* Indicates which are the newgrf features currently loaded ingame */
extern GRFLoadedFeatures _loaded_newgrf_features;
-void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
+void LoadNewGRFFile(struct GRFConfig *config, uint file_index, GrfLoadingStage stage);
void LoadNewGRF(uint load_index, uint file_index);
void ReloadNewGRFData(); // in saveload/afterload.cpp