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:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to