(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
This commit is contained in:
@@ -756,13 +756,13 @@ static void StationViewWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
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 @@ static void StationViewWndProc(Window *w, WindowEvent *e)
|
||||
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 @@ static void StationViewWndProc(Window *w, WindowEvent *e)
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user