comparison src/train_cmd.cpp @ 9274:85a62fb8608f draft

(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
author rubidium <rubidium@openttd.org>
date Sat, 17 May 2008 13:01:30 +0000
parents 02827bf3dc03
children add307f2e6ea
comparison
equal deleted inserted replaced
9273:72a6d2e60834 9274:85a62fb8608f
1348 1348
1349 if (IsRearDualheaded(v)) return_cmd_error(STR_REAR_ENGINE_FOLLOW_FRONT_ERROR); 1349 if (IsRearDualheaded(v)) return_cmd_error(STR_REAR_ENGINE_FOLLOW_FRONT_ERROR);
1350 1350
1351 if (flags & DC_EXEC) { 1351 if (flags & DC_EXEC) {
1352 if (v == first && IsFrontEngine(first)) { 1352 if (v == first && IsFrontEngine(first)) {
1353 delete FindWindowById(WC_VEHICLE_VIEW, first->index); 1353 DeleteWindowById(WC_VEHICLE_VIEW, first->index);
1354 } 1354 }
1355 InvalidateWindow(WC_VEHICLE_DEPOT, first->tile); 1355 InvalidateWindow(WC_VEHICLE_DEPOT, first->tile);
1356 RebuildVehicleLists(); 1356 RebuildVehicleLists();
1357 } 1357 }
1358 1358