diff options
author | bjarni <bjarni@openttd.org> | 2006-10-10 08:24:29 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-10-10 08:24:29 +0000 |
commit | 6b42ffc95ef43f2815408c76d1c243b434f4fe09 (patch) | |
tree | ad645729c61e983bfbae94c41782b4f273e32100 /ship_gui.c | |
parent | 238b34e000b158ee8bf8e1c4dc07b290e937ff72 (diff) | |
download | openttd-6b42ffc95ef43f2815408c76d1c243b434f4fe09.tar.xz |
(svn r6715) -Fix r6714: roadvehicle and ship building windows are now also marked dirty when getting a WE_INVALIDATE_DATA event
This will make the windows mark dirty again when a new vehicle is available or one is removed from the list (again)
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ship_gui.c b/ship_gui.c index 48867bb46..3d16ec0b2 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -244,6 +244,10 @@ void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2) static void NewShipWndProc(Window *w, WindowEvent *e) { switch (e->event) { + case WE_INVALIDATE_DATA: + SetWindowDirty(w); + break; + case WE_PAINT: { EngineID selected_id; EngineID eid; |