Prepared for new orders.
This commit is contained in:
parent
daa608c2b9
commit
cf50b37176
1 changed files with 6 additions and 7 deletions
|
@ -45,12 +45,11 @@
|
|||
*/
|
||||
global int HandleActionDie(Unit* unit)
|
||||
{
|
||||
if ( unit->Revealer )
|
||||
{
|
||||
unit->HP--;
|
||||
if( unit->HP == 0 )
|
||||
ReleaseUnit(unit);
|
||||
return 0;
|
||||
if ( unit->Revealer ) {
|
||||
if( !--unit->HP ) {
|
||||
ReleaseUnit(unit);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -84,7 +83,7 @@ global int HandleActionDie(Unit* unit)
|
|||
}
|
||||
);
|
||||
unit->Orders[0].Action=UnitActionDie;
|
||||
--unit->OrderCount;
|
||||
--unit->OrderCount; // remove the stop command
|
||||
#else
|
||||
unit->Command.Action=UnitActionDie;
|
||||
if( unit->NextCount ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue