(svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with real static inline functions

This commit is contained in:
bjarni
2007-01-22 16:16:52 +00:00
parent 053dd86a3c
commit 8de4196410
3 changed files with 58 additions and 24 deletions

View File

@@ -1777,13 +1777,13 @@ void PlayerVehWndProc(Window *w, WindowEvent *e)
DoCommandP(0, GB(w->window_number, 16, 16) /* StationID or OrderID (depending on VLW) */,
(w->window_number & VLW_MASK) | DEPOT_MASS_SEND | DEPOT_SERVICE,
NULL,
CMD_SEND_TO_DEPOT(vl->vehicle_type));
GetCmdSendToDepot(vl->vehicle_type));
break;
case 2: /* Send to Depots */
DoCommandP(0, GB(w->window_number, 16, 16) /* StationID or OrderID (depending on VLW) */,
(w->window_number & VLW_MASK) | DEPOT_MASS_SEND,
NULL,
CMD_SEND_TO_DEPOT(vl->vehicle_type));
GetCmdSendToDepot(vl->vehicle_type));
break;
default: NOT_REACHED();