Mercurial > hg > openttd
changeset 4748:8410cac194d5 draft
(svn r6660) -Fix(r6631): Prevent the fast-foward button to toggle up and down when pressing shift.
The _fastforward and _pause bool are not exactly used as bool.
So, when doing test with them, amek it so that the will appear as such
author | belugas <belugas@openttd.org> |
---|---|
date | Fri, 06 Oct 2006 01:18:12 +0000 |
parents | 4db73e63de0f |
children | 957fe32219ca |
files | main_gui.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/main_gui.c +++ b/main_gui.c @@ -1838,12 +1838,12 @@ case WE_ON_EDIT_TEXT: HandleOnEditText(e); break; case WE_MOUSELOOP: - if (IsWindowWidgetLowered(w, 0) != _pause) { + if (IsWindowWidgetLowered(w, 0) != !!_pause) { ToggleWidgetLoweredState(w, 0); SetWindowDirty(w); } - if (IsWindowWidgetLowered(w, 1) != _fast_forward) { + if (IsWindowWidgetLowered(w, 1) != !!_fast_forward) { ToggleWidgetLoweredState(w, 1); SetWindowDirty(w); } @@ -2033,12 +2033,12 @@ case WE_ON_EDIT_TEXT: HandleOnEditText(e); break; case WE_MOUSELOOP: - if (IsWindowWidgetLowered(w, 0) != _pause) { + if (IsWindowWidgetLowered(w, 0) != !!_pause) { ToggleWidgetLoweredState(w, 0); SetWindowDirty(w); } - if (IsWindowWidgetLowered(w, 1) != _fast_forward) { + if (IsWindowWidgetLowered(w, 1) != !!_fast_forward) { ToggleWidgetLoweredState(w, 1); SetWindowDirty(w); }