[Freeciv-tickets] [freeciv] #45895: Pop units in build slots > 1 reduce the population of the city even when deletetd/postponed from not fulfilling build reqs

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon Oct 17 21:32:51 JST 2022


#45895: Pop units in build slots > 1 reduce the population of the city even when deletetd/postponed from not fulfilling build reqs

  Open Date: 2022-10-17 15:06
Last Update: 2022-10-17 15:32

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

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

Last Changes/Comment on this Ticket:
2022-10-17 15:32 Updated by: cazfi

Comment:

That seems like FCW specific bug as they allow build slots to produce different kind of units than what was checked for. (They have a point in that the behavior they look for makes sense, but they have removed restrictions without fixing the reasons the restrictions were there)

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

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

Ticket details:

Blamed: city_build_unit()
Pop reduction actions need to be INSIDE the {{{ code c 
if (punit) {
...
}
}}}
Otherwise if punit == NULL because illegal to build, it will still reduce the population.

-- 
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/45895
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45895



More information about the Freeciv-tickets mailing list
Back to archive index