[Freeciv-tickets] [freeciv] #45631: can_player_build_unit_direct() double is_barbarian() call

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Mon Oct 10 12:23:30 JST 2022


#45631: can_player_build_unit_direct() double is_barbarian() call

  Open Date: 2022-09-10 03:41
Last Update: 2022-10-10 06:23

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

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

Last Changes/Comment on this Ticket:
2022-10-10 06:23 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


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

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: General
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

can_player_build_unit_direct() does 'barbarian = is_barbarian(p)" assignment twice (in the beginning, and a bit later. It's already needed before the latter one). As it's a function call, compiler even cannot leave one out.

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



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