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

                 Summary: max_trade_routes()
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 18 Feb 2012 03:25:07 AM 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: 2.5.0

    _______________________________________________________

Details:

This patch uses new max_trade_routes() -call in every place where
NUM_TRADE_ROUTES was used to indicate how many trade routes can be established
to a city currently. Where NUM_TRADE_ROUTES were used to indicate number of
traderoute slots needed, MAX_TRADE_ROUTES is now used.

I'm going to do more traderoute stuff soon, so I created new
traderoute.[ch] module initially containing only this new max_trade_routes()
function. Header contains also new trade_routes_iterate() -macro that proved
useful when converting iterations over NUM_TRADE_ROUTES slots to iterations
over MAX_TRADE_ROUTES slots.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 18 Feb 2012 03:25:07 AM EET  Name: MaxTradeRoutes.diff.bz2  Size:
5kB   By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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