From cf50b37176b330069e2b1338dcffef5ad7d2c03a Mon Sep 17 00:00:00 2001 From: johns <> Date: Sat, 27 Jan 2001 00:33:21 +0000 Subject: [PATCH] Prepared for new orders. --- src/action/action_die.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/action/action_die.cpp b/src/action/action_die.cpp index 5805b1189..7d33388bc 100644 --- a/src/action/action_die.cpp +++ b/src/action/action_die.cpp @@ -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 ) {