We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need to fix this because in LTT we go beyond 9 in some cases.
The text was updated successfully, but these errors were encountered:
I think you had a link to the problematic line? cazfi's granularity project might lead to improvements in the area.
Sorry, something went wrong.
Ya. It is this constant value. #define NUM_TILES_DIGITS 10 https://github.com/freeciv/freeciv/blob/0b29e0ff39ed0aef887f3222ca37d281b71b8b9b/client/tilespec.c#L112
#define NUM_TILES_DIGITS 10
It is clipped at that value to ignore higher values gracefully. food = CLIP(0, food / game.info.granularity, NUM_TILES_DIGITS - 1); https://github.com/freeciv/freeciv/blob/0b29e0ff39ed0aef887f3222ca37d281b71b8b9b/client/tilespec.c#L4818
food = CLIP(0, food / game.info.granularity, NUM_TILES_DIGITS - 1);
The proper way to do this is probably to allow the tileset to decide on the max value.
Allow an arbitrary number of tile output sprites
aade89c
Some rulesets (eg LTT) go above the hard-coded maximum of 10. Let the artist specify as many sprites as he wants. Closes longturn#345.
8402b21
Some rulesets (eg LTT) go above the hard-coded maximum of 10. Let the artist specify as many sprites as he wants. Closes #345.
lmoureaux
Successfully merging a pull request may close this issue.
We need to fix this because in LTT we go beyond 9 in some cases.
The text was updated successfully, but these errors were encountered: