News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[cleanup patch] clean up AUTOLINEAR number input

Started by neroden, July 11, 2010, 06:55:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

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.