The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: neroden on July 11, 2010, 06:55:26 am

Title: [cleanup patch] clean up AUTOLINEAR number input
Post by: neroden on July 11, 2010, 06:55:26 am
Another thing I ran into while preparing the codebase for templated min/max.  The code for the AUTOLINEAR mode in gui_numberinput.cc was slightly confused about types (and also inconsistent between the decrement and the increment modes).  The PROGRESS mode was also confused about types and the integer promotion rules.

These have been fixed to behave in a consistent manner; patch attached.