Follow-up Comment #2, patch #1203 (project freeciv):
Should the hard coded numbers in ruleset.c be
changed to constants defined in game.h? At the
moment it is a mix out of numbers and constants.
Furthermore, perhaps a function
secfile_lookup_int_default_min_max() is needed? It
would be equal to secfile_lookup_int_default() but
includes a check for minimum / maximum allowed
values. Such a check is included for some values
but it could be a sanity check for most values as
they should be >= 0 (and <= big value).
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1203>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev