URL:
  <http://gna.org/patch/?4056>

                 Summary: Remove extra_type_get()
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 01 Aug 2013 03:00:57 PM EEST
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0

    _______________________________________________________

Details:

extra_type_get() is based on assumption about extras order that old specials
are first, then all bases in order, and then all roads in order.
Attached patch makes it so that such a function is not used for getting bases
or roads. Not only are such callers changed, but extra_type_get() is removed
so it won't be used in the future. For remaining EXTRA_SPECIAL users
introduced new special_extra_get() function. This new function still has the
problem of assuming specials being first extras.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 01 Aug 2013 03:00:57 PM EEST  Name: ExtraTypeGetRm.patch  Size: 19kB
  By: cazfi

<http://gna.org/patch/download.php?file_id=18605>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4056>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to