summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-10 12:30:27 +0000
committerrubidium <rubidium@openttd.org>2008-05-10 12:30:27 +0000
commitf7108760378c98077b1c664939d0e2c32a21624f (patch)
treea5bdbc9159ef2a9e4438fbff08ec11d3adba7744 /src/smallmap_gui.cpp
parent2c96ce4506163ad1528db6a4340964af99fc1de2 (diff)
downloadopenttd-f7108760378c98077b1c664939d0e2c32a21624f.tar.xz
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 11d9f8435..966f85fe7 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1182,10 +1182,8 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e)
ZoomInOrOutToCursorWindow(e->we.wheel.wheel < 0, w);
break;
-
- case WE_MESSAGE:
+ case WE_INVALIDATE_DATA:
/* Only handle zoom message if intended for us (msg ZOOM_IN/ZOOM_OUT) */
- if (e->we.message.wparam != w->window_number) break;
HandleZoomMessage(w, w->viewport, 5, 6);
break;
}