Summary: Ferry set to ABANDON_BOSS when it's in fact
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 17 Jul 2013 01:56:58 PM EEST
                Category: ai
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



dai_manage_ferryboat() may end up setting ferry passenger status to
ABANDON_BOSS when boss has left the ferry ok and it has (correctly) AVAILABLE

It first manages the boss, and then does the check if boss is on board on
assumption that boss is still to board. If boss is not yet in, and there's
other units waiting in, it decides to abandon the boss by setting passanger
(presumably from old boss id) to ABANDON_BOSS. This ignores the case where
boss has actually already finished with the boat, and freed it, while boss was
At the very least this causes ferry stats to be miscounted. I don't know if
this can explain why AI ends building such huge numbers of unused ferries -
maybe it ends considering all existing ferries being allocated because of this


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to