hedgewars/uMobile.pas
changeset 4362 8dae325dc625
parent 4034 634a8c8682de
child 4436 94c948a92759
equal deleted inserted replaced
4360:6cdb427ef82c 4362:8dae325dc625
    75 end;
    75 end;
    76 
    76 
    77 procedure perfExt_AmmoUpdate; // don't inline
    77 procedure perfExt_AmmoUpdate; // don't inline
    78 begin
    78 begin
    79 {$IFDEF IPHONEOS}
    79 {$IFDEF IPHONEOS}
    80     if (CurrentTeam^.ExtDriven) or (CurrentTeam^.Hedgehogs[0].BotLevel <> 0) then
    80     if (CurrentTeam = nil) or
       
    81        (CurrentTeam^.ExtDriven) or
       
    82        (CurrentTeam^.Hedgehogs[0].BotLevel <> 0) then
    81         exit(); // the other way around throws a compiler error
    83         exit(); // the other way around throws a compiler error
    82     updateVisualsNewTurn();
    84     updateVisualsNewTurn();
    83 {$ENDIF}
    85 {$ENDIF}
    84 end;
    86 end;
    85 
    87