[Freeciv-tickets] [freeciv] #44730: Fix city_size limitations for units.ruleset

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Fri Jun 3 23:32:43 JST 2022


#44730: Fix city_size limitations for units.ruleset

  Open Date: 2022-05-30 21:53
Last Update: 2022-06-03 17:32

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

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

Last Changes/Comment on this Ticket:
2022-06-03 17:32 Updated by: cazfi

Comment:

Reply To cazfi
open a new ticket about further master changes.
-> #44747

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

      Reporter: ihnatus
         Owner: cazfi
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.0.2
     Component: Server
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

A split of #44703 for all active branches.
Currently, city_size is lifted from non-positive values to 1 for units having "Settlers" flag. Obviously, it should be for units that can found cities that is for long a different category. Also, for them overflow of this value should be also fitted in (now, does not fail the application but breaks helptext and produces warnings).
EDIT: Tested the case. Underflow value emulates HQ9+ "+" operator and fails the ruleset to load. Overflow value takes the lower byte that may result in 0, then the city is actually deleted after creation. If we remove the "Settlers" flag from city builders, loads any values, for negative ones the lower byte goes to helptext  but the city size is 1. Server complains only on bad unit type packet values. So yes, it needs to be fixed.

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



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る