Summary: Old road building activities to add road type, not
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 01 Mar 2012 02:50:25 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



While ACTIVITY_ROAD and ACTIVITY_RAILROAD are eventually going away
themselves, they should behave more gen-roads style meanwhile. Attached patch
makes them to create new roads with tile_add_road(). This way roads bitvector
stays up-to-date too, not just specials indicating road types buildable with
these activities.
In case there's no road for specific compatibility role (compat_special
"Road"/S_ROAD for ACTIVITY_ROAD or "Railroad"/S_RAILROAD for
ACTIVITY_RAILROAD) tile_add_road() and tile_remove_road() are changed to check
against NULL parameter. This is not yet used, as other parts of code require
that roads for both compatibility roles exist.


File Attachments:

Date: Thu 01 Mar 2012 02:50:25 AM EET  Name: RoadActivitiesAddRoadNotSpe.diff 
Size: 2kB   By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to