URL: <http://gna.org/patch/?3172>
Summary: Old road building activities to add road type, not specials 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 _______________________________________________________ Details: 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 <http://gna.org/patch/download.php?file_id=15243> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?3172> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev