[Freeciv-tickets] [freeciv] #42993: Wonders needlessly hard-coded to override the building upkeep specified in the ruleset.

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Thu Oct 7 19:09:55 JST 2021


#42993: Wonders needlessly hard-coded to override the building upkeep specified in the ruleset.

  Open Date: 2021-10-07 19:09
Last Update: 2021-10-07 19:09

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/42993
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42993

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-10-07 19:09 Updated by: lexxie9952
 * New Ticket "Wonders needlessly hard-coded to override the building upkeep specified in the ruleset." created


---------------------------------------------------------------------
Ticket Status:

      Reporter: lexxie9952
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

This bug was probably never found because the vast majority of wonders have 0 upkeep.
However, rulesets allow the ruleset designer to set the upkeep for any building or wonder.
There is no need for the server to hard-code 0 upkeep for wonders to override the ruleset values.
file: city.js
function: int city_improvement_upkeep(const struct city *pcity, const struct impr_type *b)
blamed lines:
if (is_wonder(b)) {
return 0;
}


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/42993
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42993



More information about the Freeciv-tickets mailing list
Zurück zum Archiv-Index