Mercurial > hg > openttd
diff src/station_gui.cpp @ 6259:4a39d6291d58 draft
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 08 Mar 2007 16:27:54 +0000 (2007-03-08) |
parents | 28e00ab69663 |
children | c0de6f270ae9 |
line wrap: on
line diff
--- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -756,13 +756,13 @@ case 10: { /* Show a list of scheduled trains to this station */ const Station *st = GetStation(w->window_number); - ShowVehicleListWindow(st->owner, VEH_Train, (StationID)w->window_number); + ShowVehicleListWindow(st->owner, VEH_TRAIN, (StationID)w->window_number); break; } case 11: { /* Show a list of scheduled road-vehicles to this station */ const Station *st = GetStation(w->window_number); - ShowVehicleListWindow(st->owner, VEH_Road, (StationID)w->window_number); + ShowVehicleListWindow(st->owner, VEH_ROAD, (StationID)w->window_number); break; } @@ -770,7 +770,7 @@ const Station *st = GetStation(w->window_number); /* Since oilrigs have no owners, show the scheduled aircraft of current player */ PlayerID owner = (st->owner == OWNER_NONE) ? _current_player : st->owner; - ShowVehicleListWindow(owner, VEH_Aircraft, (StationID)w->window_number); + ShowVehicleListWindow(owner, VEH_AIRCRAFT, (StationID)w->window_number); break; } @@ -778,7 +778,7 @@ const Station *st = GetStation(w->window_number); /* Since oilrigs/bouys have no owners, show the scheduled ships of current player */ PlayerID owner = (st->owner == OWNER_NONE) ? _current_player : st->owner; - ShowVehicleListWindow(owner, VEH_Ship, (StationID)w->window_number); + ShowVehicleListWindow(owner, VEH_SHIP, (StationID)w->window_number); break; } }