Summary: Obsolete "NoBonus" road move mode
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 30 Jun 2014 02:55:37 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.6.0



Now that move_mode is used to things other than speed calculations (move
legality, for example around river corners), "NoBonus" mode is causing
trouble. One cannot have road type without move bonus but with move legality
restricted. To achieve former, one would set "NoBonus" and for the latter mode
needs to be something else.

Attached patch removes "NoBonus" mode, and codes the fact that road provides
no speed bonuses to move_cost, which was earlier completely ignored in
conjunction with "NoBonus". Move_cost value of "-1" (or any negative value,
but consider others reserved) means that road provides no speed bonus.


File Attachments:

Date: Mon 30 Jun 2014 02:55:37 AM EEST  Name: RoadNoBonusRm.patch  Size: 11kB 
 By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to