(svn r12119) -Codechange: Rename grfspec_feature to match code style, and expose in header for use elsewhere.
authorpeter1138
Tue, 12 Feb 2008 11:08:47 +0000
changeset 9037 f97b6107e459
parent 9036 d3b132a4b97a
child 9038 ba653fa53dcd
(svn r12119) -Codechange: Rename grfspec_feature to match code style, and expose in header for use elsewhere.
src/newgrf.cpp
src/newgrf.h
--- a/src/newgrf.cpp	Tue Feb 12 03:05:27 2008 +0000
+++ b/src/newgrf.cpp	Tue Feb 12 11:08:47 2008 +0000
@@ -93,23 +93,6 @@
 static GrfDataType _grf_data_type;
 
 
-enum grfspec_feature {
-	GSF_TRAIN,
-	GSF_ROAD,
-	GSF_SHIP,
-	GSF_AIRCRAFT,
-	GSF_STATION,
-	GSF_CANAL,
-	GSF_BRIDGE,
-	GSF_TOWNHOUSE,
-	GSF_GLOBALVAR,
-	GSF_INDUSTRYTILES,
-	GSF_INDUSTRIES,
-	GSF_CARGOS,
-	GSF_SOUNDFX,
-};
-
-
 typedef void (*SpecialSpriteHandler)(byte *buf, int len);
 
 static const uint _vehcounts[4] = {
--- a/src/newgrf.h	Tue Feb 12 03:05:27 2008 +0000
+++ b/src/newgrf.h	Tue Feb 12 11:08:47 2008 +0000
@@ -32,6 +32,23 @@
 	GMB_CATENARY_ON_3RD_TRACK  = 5, // Unsupported.
 };
 
+enum GrfSpecFeature {
+	GSF_TRAIN,
+	GSF_ROAD,
+	GSF_SHIP,
+	GSF_AIRCRAFT,
+	GSF_STATION,
+	GSF_CANAL,
+	GSF_BRIDGE,
+	GSF_TOWNHOUSE,
+	GSF_GLOBALVAR,
+	GSF_INDUSTRYTILES,
+	GSF_INDUSTRIES,
+	GSF_CARGOS,
+	GSF_SOUNDFX,
+	GSF_END,
+};
+
 struct GRFLabel {
 	byte label;
 	uint32 nfo_line;