URL: <http://gna.org/bugs/?20978>
Summary: Ferry set to ABANDON_BOSS when it's in fact available 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 Release: Discussion Lock: Any Operating System: None Planned Release: _______________________________________________________ Details: 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 status. 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 managed. 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 bug. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?20978> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev