[Freeciv-tickets] [freeciv] #41121: Make counter_type a specenum

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue Apr 26 22:12:25 JST 2022


#41121: Make counter_type a specenum

  Open Date: 2021-01-08 06:39
Last Update: 2022-04-26 22:12

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

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

Last Changes/Comment on this Ticket:
2022-04-26 22:12 Updated by: lachu

Comment:

Reply To cazfi
I think this part break things:

-/* Space for one counter of each type */
-#define MAX_COUNTERS COUNTER_COUNT
+#define MAX_COUNTERS 20

You make all the iterations over counters, including their creation, to go up to 20. That means there's 20 identical Owned counters instead of just 1.
Repaired. I also removed comments created by copy operation, which I missed.

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

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Make counter_type a specenum to ease support of human readable names for its values.

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



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