hedgewars/uGears.pas
changeset 7165 aad1aea05f1e
parent 7154 56e329edf4b8
child 7174 80480d21e6ed
equal deleted inserted replaced
7164:fad64b97947e 7165:aad1aea05f1e
   361 
   361 
   362                 EndTurnCleanup;
   362                 EndTurnCleanup;
   363 
   363 
   364                 FreeActionsList; // could send -left, -right and similar commands, so should be called before /nextturn
   364                 FreeActionsList; // could send -left, -right and similar commands, so should be called before /nextturn
   365 
   365 
   366                 ParseCommand('/nextturn', true);
       
   367                 SwitchHedgehog;
   366                 SwitchHedgehog;
   368 
   367 
   369                 AfterSwitchHedgehog;
   368                 AfterSwitchHedgehog;
   370                 bBetweenTurns:= false
   369                 bBetweenTurns:= false;
       
   370                 ParseCommand('/nextturn', true)
   371                 end;
   371                 end;
   372             step:= Low(step)
   372             step:= Low(step)
   373             end;
   373             end;
   374     end
   374     end
   375 else if ((GameFlags and gfInfAttack) <> 0) then
   375 else if ((GameFlags and gfInfAttack) <> 0) then