Mercurial > hg > openttd
changeset 15500:3ce7c35a1f05 draft
(svn r20152) -Fix: Silence a gcc warning.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 14 Jul 2010 20:24:45 +0000 |
parents | adae9adb9a66 |
children | 2ab30a4b535a |
files | src/window.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.cpp +++ b/src/window.cpp @@ -2241,7 +2241,7 @@ _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 @@ 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;