diff options
author | frosch <frosch@openttd.org> | 2010-07-14 20:24:45 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-07-14 20:24:45 +0000 |
commit | 8439cf2f4cdc28cbda4e058eeac955c89cd0a48a (patch) | |
tree | ae8364a5ac319338745e2d14114eecc55d45c9cd | |
parent | c960e1a5ebf480f05c1b2443d4739cbedf13faa5 (diff) | |
download | openttd-8439cf2f4cdc28cbda4e058eeac955c89cd0a48a.tar.xz |
(svn r20152) -Fix: Silence a gcc warning.
-rw-r--r-- | src/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index 5c9eeb7f5..7215061b7 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2241,7 +2241,7 @@ void HandleMouseEvents() _input_events_this_tick++; } - static int hover_time = 0; + static uint32 hover_time = 0; static Point hover_pos = {0, 0}; if (_settings_client.gui.hover_delay > 0) { @@ -2252,7 +2252,7 @@ void HandleMouseEvents() hover_time = _realtime_tick; _mouse_hovering = false; } else { - if (hover_time != 0 && _realtime_tick - hover_time > _settings_client.gui.hover_delay * 1000) { + if (hover_time != 0 && _realtime_tick > hover_time + _settings_client.gui.hover_delay * 1000) { click = MC_HOVER; _input_events_this_tick++; _mouse_hovering = true; |