summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-26 19:18:50 +0000
committertruelight <truelight@openttd.org>2006-08-26 19:18:50 +0000
commit7e6f1f16c0562413d5f59c87b8fed109ef75b604 (patch)
tree85d7900af862f73712ea76d5750382075ee9576c
parentd417827516505e27319ae4ab630161e404cc1a58 (diff)
downloadopenttd-7e6f1f16c0562413d5f59c87b8fed109ef75b604.tar.xz
(svn r6152) -Codechange: renamed GetNumRoadStops to GetNumRoadStopsInStation as it reflects its function more
-rw-r--r--station_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 2cd7b1bd7..fe78889f9 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -134,7 +134,7 @@ RoadStop* GetRoadStopByTile(TileIndex tile, RoadStopType type)
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, uint32 flags, uint32 p1, uint32 p2)
}
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);
}