Opened 11 years ago
Last modified 11 years ago
#1999 closed defect
[PATCH]Cleaning of OnDestroy in UnitAI — at Version 2
Reported by: | mimo | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 14 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description (last modified by )
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 #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.
Change History (3)
by , 11 years ago
Attachment: | destroy.diff added |
---|
comment:1 by , 11 years ago
Milestone: | Backlog → Alpha 15 |
---|
comment:2 by , 11 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.