hedgewars/uAIActions.pas
changeset 7132 baf3351646f4
parent 7028 0f60591f3a16
child 7197 5a9775b97c7e
equal deleted inserted replaced
7130:fcab1fd02bc6 7132:baf3351646f4
   174                     //OutError('AI: WaitXL assert (' + IntToStr(hwRound(Me^.X)) + ' < ' + IntToStr(Param) + ')', false);
   174                     //OutError('AI: WaitXL assert (' + IntToStr(hwRound(Me^.X)) + ' < ' + IntToStr(Param) + ')', false);
   175                     FreeActionsList;
   175                     FreeActionsList;
   176                     exit
   176                     exit
   177                     end
   177                     end
   178                 else
   178                 else
   179                     begin CheckHang(Me);
   179                     begin 
       
   180                     CheckHang(Me);
   180                     exit
   181                     exit
   181                     end;
   182                     end;
   182                             
   183                             
   183             aia_WaitXR: 
   184             aia_WaitXR: 
   184             if hwRound(Me^.X) = Param then
   185             if hwRound(Me^.X) = Param then
   192                     //OutError('AI: WaitXR assert (' + IntToStr(hwRound(Me^.X)) + ' > ' + IntToStr(Param) + ')', false);
   193                     //OutError('AI: WaitXR assert (' + IntToStr(hwRound(Me^.X)) + ' > ' + IntToStr(Param) + ')', false);
   193                     FreeActionsList;
   194                     FreeActionsList;
   194                     exit
   195                     exit
   195                     end
   196                     end
   196                 else
   197                 else
   197                     begin CheckHang(Me);
   198                     begin 
       
   199                     CheckHang(Me);
   198                     exit
   200                     exit
   199                     end;
   201                     end;
   200             aia_LookLeft:
   202             aia_LookLeft:
   201             if not Me^.dX.isNegative then
   203             if not Me^.dX.isNegative then
   202                 begin
   204                 begin