From fc1a90b6630a65c7164eefea0abd0e76a9ce2b98 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 1 Dec 2006 00:09:13 +0000 Subject: (svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls. --- roadveh_gui.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'roadveh_gui.c') diff --git a/roadveh_gui.c b/roadveh_gui.c index e2c3ccf9d..1dfb48789 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -455,10 +455,6 @@ 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; -- cgit v1.2.3-54-g00ecf