Changeset - r4399:b14c254709e8
[Not reviewed]
master
0 1 0
truelight - 18 years ago 2006-08-26 19:18:50
truelight@openttd.org
(svn r6152) -Codechange: renamed GetNumRoadStops to GetNumRoadStopsInStation as it reflects its function more
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -134,7 +134,7 @@ RoadStop* GetRoadStopByTile(TileIndex ti
 
	return rs;
 
}
 

	
 
uint GetNumRoadStops(const Station* st, RoadStopType type)
 
uint GetNumRoadStopsInStation(const Station* st, RoadStopType type)
 
{
 
	uint num = 0;
 
	const RoadStop *rs;
 
@@ -1432,7 +1432,7 @@ int32 CmdBuildRoadStop(TileIndex tile, u
 
	}
 

	
 
	if (st != NULL &&
 
			GetNumRoadStops(st, RS_BUS) + GetNumRoadStops(st, RS_TRUCK) >= ROAD_STOP_LIMIT) {
 
			GetNumRoadStopsInStation(st, RS_BUS) + GetNumRoadStopsInStation(st, RS_TRUCK) >= ROAD_STOP_LIMIT) {
 
		return_cmd_error(type ? STR_3008B_TOO_MANY_TRUCK_STOPS : STR_3008A_TOO_MANY_BUS_STOPS);
 
	}
 

	
0 comments (0 inline, 0 general)