summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-01 00:09:13 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-01 00:09:13 +0000
commitfc1a90b6630a65c7164eefea0abd0e76a9ce2b98 (patch)
tree34e228c15bbd169f5c13601b61aa43ae9e3b95ba /roadveh_gui.c
parent3762f8d9d25fb5acf2abbdeec3bb40cb06c991d3 (diff)
downloadopenttd-fc1a90b6630a65c7164eefea0abd0e76a9ce2b98.tar.xz
(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.
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c4
1 files changed, 0 insertions, 4 deletions
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;