summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-02 19:55:09 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-02 19:55:09 +0000
commitd5ce50a405fa344cd070b35e0e31b68be5fab42e (patch)
tree481553efefffad348e1ffe91ecbebbd467ab67c4 /vehicle_gui.c
parent2cfdfb5d96b16dd89bacd1dca2def7ae3a4cbe87 (diff)
downloadopenttd-d5ce50a405fa344cd070b35e0e31b68be5fab42e.tar.xz
(svn r3359) - Autoreplace GUI: When starting or stopping a replacement, redraw the replace window after the command has completed, rather than after calling the command.
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index c8e184c13..fdaa7fa4f 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -940,14 +940,12 @@ static void ReplaceVehicleWndProc(Window *w, WindowEvent *e)
EngineID veh_from = WP(w, replaceveh_d).sel_engine[0];
EngineID veh_to = WP(w, replaceveh_d).sel_engine[1];
DoCommandP(0, 3, veh_from + (veh_to << 16), NULL, CMD_REPLACE_VEHICLE);
- SetWindowDirty(w);
break;
}
case 6: { /* Stop replacing */
EngineID veh_from = WP(w, replaceveh_d).sel_engine[0];
DoCommandP(0, 3, veh_from + (INVALID_ENGINE << 16), NULL, CMD_REPLACE_VEHICLE);
- SetWindowDirty(w);
break;
}