Prepared for new orders.

This commit is contained in:
johns 2001-01-27 00:33:21 +00:00
parent daa608c2b9
commit cf50b37176

View file

@ -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 ) {