Opened 11 years ago
Last modified 11 years ago
#1999 closed defect
[PATCH]Cleaning of OnDestroy in UnitAI — at Initial Version
Reported by: | mimo | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 14 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
In UnitAI, when a unit is destroyed, the leave method of its current state is not called, thus forcing to dupplicate some code in the OnDestroy method. Presently, there are some code to clean timers or update some counters. But working on http://trac.wildfiregames.com/ticket/1391 I would need to add more.These would become useless if we are sure the leave method is always called. Here is a patch to fix that.
Note:
See TracTickets
for help on using tickets.