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

                 Summary: Cleanup resource_valid handling
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Fri 25 Dec 2015 06:33:34 PM EET
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 3.0.0

    _______________________________________________________

Details:

Replace separate resource_valid bit in the tile structure with simply not
setting the extra in the tile when it's not valid, just keeping the resource
pointer pointing to the "potential" resource. This makes (more so in the
future when resources get more integrated to extras framework) things also
faster as iterations over extras on tile do not need to check validity
separately but "existence" of the extra already tells that it's also valid.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 25 Dec 2015 06:33:34 PM EET  Name: ResourceValidCleanup.patch  Size:
5kB   By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to