(svn r647) Cleanup custom station classes handling. (pasky)

This commit is contained in:
miham
2004-11-17 00:52:54 +00:00
parent cd6cb84889
commit 86d19cb577
5 changed files with 41 additions and 17 deletions

View File

@@ -307,7 +307,7 @@ static void BuildRailClick_Sign(Window *w)
static void BuildRailClick_Waypoint(Window *w)
{
_waypoint_count = GetCustomStationsCount('WAYP');
_waypoint_count = GetCustomStationsCount(STAT_CLASS_WAYP);
if (HandlePlacePushButton(w, 18, SPR_OPENTTD_BASE + 7, 1, PlaceRail_Waypoint)
&& _waypoint_count > 1)
ShowBuildWaypointPicker();