forked from mirror/OpenTTD
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
This commit is contained in:
@@ -810,7 +810,7 @@ static void RailVehicleRefitWndProc(Window *w, WindowEvent *e)
|
||||
WP(w,refit_d).cargo = DrawVehicleRefitWindow(v, WP(w, refit_d).sel);
|
||||
|
||||
if (WP(w,refit_d).cargo != CT_INVALID) {
|
||||
int32 cost = DoCommandByTile(v->tile, v->index, WP(w,refit_d).cargo, DC_QUERY_COST, CMD_REFIT_RAIL_VEHICLE);
|
||||
int32 cost = DoCommand(v->tile, v->index, WP(w,refit_d).cargo, DC_QUERY_COST, CMD_REFIT_RAIL_VEHICLE);
|
||||
if (!CmdFailed(cost)) {
|
||||
SetDParam(2, cost);
|
||||
SetDParam(0, _cargoc.names_long[WP(w,refit_d).cargo]);
|
||||
|
Reference in New Issue
Block a user