Mercurial > hg > openttd
changeset 6255:f93184e4a261 draft
(svn r9064) -Fix [FS#663]: don't keep on scrolling for non-numeric values in settings, but require reclick
author | truelight <truelight@openttd.org> |
---|---|
date | Thu, 08 Mar 2007 12:57:08 +0000 |
parents | 0cee819de502 |
children | f7a3e330a35c |
files | src/settings_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -827,8 +827,8 @@ if (value < sdb->min) value = (sdb->flags & SGF_0ISDISABLED) ? 0 : sdb->min; } - /* Set up scroller timeout */ - if (value != oldvalue) { + /* Set up scroller timeout for numeric values */ + if (value != oldvalue && !(sd->desc.flags & SGF_MULTISTRING)) { WP(w,def_d).data_2 = btn * 2 + 1 + ((x >= 10) ? 1 : 0); w->flags4 |= 5 << WF_TIMEOUT_SHL; _left_button_clicked = false;