Mercurial > hg > openttd
changeset 5730:91e44c521f66 draft
(svn r8273) -Fix: return value from clamp was ignored
author | KUDr <KUDr@openttd.org> |
---|---|
date | Thu, 18 Jan 2007 23:48:04 +0000 |
parents | aba85ecfdbb5 |
children | 1842c1520d72 |
files | src/misc_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1885,7 +1885,7 @@ /* Increase or decrease the value and clamp it to extremes */ value += (x >= 30) ? step : -step; - clamp(value, ce->min, ce->max); + value = clamp(value, ce->min, ce->max); // take whatever the function returns value = ce->proc(value, (x >= 30) ? 1 : -1);