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 /roadveh_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 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index 3f853483c..e86127205 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; |