Summary: Ruledit stores (rounded) calculated tech cost
Submitted by: sveinung
Submitted on: Sun 06 Jul 2014 09:46:41 PM UTC
Severity: 3 - Normal
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
Operating System: None
Planned Release: 2.6.0
Patch #4891 replaced the advance struct's "preset_cost" with "cost". "cost"
may be the tech cost defined in the ruleset like "preset_cost" or a calculated
value. The ruleset cost is still an int. The calculated value may be a double.
The cost field is written during ruleset load.
Patch #4891 made ruledit stop compile. Bug #22286 was a compile fix for
ruledit. It didn't try to fix anything but compilation. All it did was to
change the name from preset_cost to cost. The advantage of this over
commenting out tech cost storage is that tech cost values loaded from the
ruleset aren't lost. The disadvantage is that tech cost values calculated by
techs_precalc_data() during ruleset load are (converted to int and) stored in
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list