changeset 4399:d48acb507f63 draft

(svn r6152) -Codechange: renamed GetNumRoadStops to GetNumRoadStopsInStation as it reflects its function more
author truelight <truelight@openttd.org>
date Sat, 26 Aug 2006 19:18:50 +0000
parents 439b6cf85711
children 102cdd3fe55b
files station_cmd.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -134,7 +134,7 @@
 	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 @@
 	}
 
 	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);
 	}