Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Negativ Integer values for GRF Parameters crashes the game #7836
It shouldn't crash.
The default values (for limits) are "0" resp. "2^32 - 1".
Changing the interpretation of parameters to be signed requires a change and extension to the specs - or all existing NewGRF parameters would be interpreted wrongly
Sounds like a signed/unsigned conversion bug going on. The value stored in the GRF should not be read as a signed integer, no matter what the author thought he put in there. but the dropdown seems to treat it as a signed value, which would mean even if the author set 2^32-1 as value, it would still trigger this bug
also... what would a dropdown with 2^32 entries even look like?