Follow-up Comment #5, patch #1252 (project freeciv): as requested I created an updated patch:
cleanup of load_ruleset_game() * define min/max/default values for most ruleset settings * define the standard values for all ruleset settings in game.h using 'RS_*' * add secfile_lookup_int_default_min_max() function which uses the min/max value if the ruleset setting is out of range * move definition of ruleset_error to the head of the ruleset.c file * repair definition of SLOW_INVASION * add error handle for registry functions Please consider to delete line 302 in game.c: > game.info.slow_invasions= RS_DEFAULT_SLOW_INVASIONS; I will follow up with a patch to use a generalized error handling function within registry.c The min/max values are only estimated by myself. Please check these values. (file #6550) _______________________________________________________ Additional Item Attachment: File name: 0001-cleanup-of-load_ruleset_game.patch Size:31 KB _______________________________________________________ Reply to this item at: <http://gna.org/patch/?1252> _______________________________________________ Nachricht geschickt von/durch Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev