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 historic_bruno)

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 mimo, 11 years ago

Attachment: destroy.diff added

comment:1 by historic_bruno, 11 years ago

Milestone: BacklogAlpha 15

comment:2 by historic_bruno, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.