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

                 Summary: is_channel_city_tile() optimization
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 20 Jun 2012 01:16:00 AM 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.5.0

    _______________________________________________________

Details:

When inner loop of is_channel_city_tile() finds way to native tile (ocean), it
breaks out early. But it then ends to outer loop and continues to go through
all tiles in the network, including running inner loop for all the remaining
tiles.

This patch makes it to break out from the outer loop too when we already know
that network is connected to native tile.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 20 Jun 2012 01:16:01 AM EEST  Name: icctOpt.diff  Size: 475B   By:
cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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