URL:
<http://gna.org/bugs/?22288>
Summary: Ruledit stores (rounded) calculated tech cost
Project: Freeciv
Submitted by: sveinung
Submitted on: Sun 06 Jul 2014 09:46:41 PM UTC
Category: freeciv-ruledit
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: TRUNK
Discussion Lock: Any
Operating System: None
Planned Release: 2.6.0
_______________________________________________________
Details:
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
the ruleset.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22288>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev