changeset 15830:28e4acfb3a1e draft

(svn r20509) -Change: don't cycle (quickly) through the shade states. Just make scrolling up shade the window and scrolling down unshade it. (avdg)
author rubidium <rubidium@openttd.org>
date Sun, 15 Aug 2010 23:42:36 +0000
parents d894e15249fb
children d1146004a7a9
files src/window.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -446,7 +446,7 @@
 
 	/* Using wheel on caption/shade-box shades or unshades the window. */
 	if (nwid->type == WWT_CAPTION || nwid->type == WWT_SHADEBOX) {
-		w->SetShaded(!w->IsShaded());
+		w->SetShaded(wheel < 0);
 		return;
 	}