From 6b42ffc95ef43f2815408c76d1c243b434f4fe09 Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 10 Oct 2006 08:24:29 +0000 Subject: [PATCH] (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) --- roadveh_gui.c | 4 ++++ ship_gui.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/roadveh_gui.c b/roadveh_gui.c index 3f853483c0..e86127205f 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -453,6 +453,10 @@ void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2) static void NewRoadVehWndProc(Window *w, WindowEvent *e) { switch (e->event) { + case WE_INVALIDATE_DATA: + SetWindowDirty(w); + break; + case WE_PAINT: DrawNewRoadVehWindow(w); break; diff --git a/ship_gui.c b/ship_gui.c index 48867bb46a..3d16ec0b22 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;