(svn r8403) -Fix (r8402): Forgot to remove an enum
authorcelestar
Thu, 25 Jan 2007 11:11:43 +0000
changeset 5837 e9c21cf7c7d9
parent 5836 a60d2114780e
child 5838 1f8d470eb700
(svn r8403) -Fix (r8402): Forgot to remove an enum
src/station.h
src/station_cmd.cpp
--- a/src/station.h	Thu Jan 25 10:06:58 2007 +0000
+++ b/src/station.h	Thu Jan 25 11:11:43 2007 +0000
@@ -35,10 +35,6 @@
 	int32 feeder_profit;
 } GoodsEntry;
 
-enum {
-	ROAD_STOP_LIMIT = 16,
-};
-
 /** A Stop for a Road Vehicle */
 struct RoadStop {
 	/** Types of RoadStops */
@@ -47,8 +43,8 @@
 		TRUCK                               ///< A standard stop for trucks
 	};
 
-	static const int cDebugCtorLevel =  3;  ///< Debug level on which Contructor / Destructor messages are printed
-	static const int LIMIT           = 16;  ///< The maximum amount of roadstops that are allowed at a single station
+	static const int  cDebugCtorLevel =  3;  ///< Debug level on which Contructor / Destructor messages are printed
+	static const uint LIMIT           = 16;  ///< The maximum amount of roadstops that are allowed at a single station
 
 	TileIndex        xy;                    ///< Position on the map
 	RoadStopID       index;                 ///< Global (i.e. pool-wide) index
--- a/src/station_cmd.cpp	Thu Jan 25 10:06:58 2007 +0000
+++ b/src/station_cmd.cpp	Thu Jan 25 11:11:43 2007 +0000
@@ -1369,7 +1369,7 @@
 	std::auto_ptr<RoadStop> rs_auto_delete(road_stop);
 
 	if (st != NULL &&
-			GetNumRoadStopsInStation(st, RoadStop::BUS) + GetNumRoadStopsInStation(st, RoadStop::TRUCK) >= ROAD_STOP_LIMIT) {
+			GetNumRoadStopsInStation(st, RoadStop::BUS) + GetNumRoadStopsInStation(st, RoadStop::TRUCK) >= RoadStop::LIMIT) {
 		return_cmd_error(type ? STR_3008B_TOO_MANY_TRUCK_STOPS : STR_3008A_TOO_MANY_BUS_STOPS);
 	}