URL:
<http://gna.org/bugs/?21668>
Summary: Ferry stats not updated when unit changes type
Project: Freeciv
Submitted by: cazfi
Submitted on: Tue 18 Feb 2014 01:54:10 AM EET
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release: 2.5.0, 2.6.0
_______________________________________________________
Details:
AI ferry stats are not updated if unit is upgraded or converted such a way
that its dai_is_ferry() status changes.
Fix attached.
- Introduce unit_transformed(punit, old_type) AI type callback
- Default AI updates ferry stats in that callback
Too intrusive for S2_4 (ferry stats will not be completely fixed there)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 18 Feb 2014 01:54:10 AM EET Name: FerryTransformed.patch Size: 7kB
By: cazfi
<http://gna.org/bugs/download.php?file_id=20093>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21668>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev