hedgewars/uGame.pas
branchhedgeroid
changeset 6341 ccc0a58e123d
parent 6328 d14adf1c7721
child 6580 6155187bf599
equal deleted inserted replaced
6338:633af6fec34f 6341:ccc0a58e123d
    24 procedure DoGameTick(Lag: LongInt);
    24 procedure DoGameTick(Lag: LongInt);
    25 
    25 
    26 ////////////////////
    26 ////////////////////
    27    implementation
    27    implementation
    28 ////////////////////
    28 ////////////////////
    29 uses uKeys, uTeams, uIO, uAI, uGears, uSound, uMobile, uVisualGears, uTypes, uVariables, uTouch;
    29 uses uKeys, uTeams, uIO, uAI, uGears, uSound, uMobile, uVisualGears, uTypes, uVariables{$IFDEF SDL13}, uTouch{$ENDIF};
    30 
    30 
    31 procedure DoGameTick(Lag: LongInt);
    31 procedure DoGameTick(Lag: LongInt);
    32 var i: LongInt;
    32 var i: LongInt;
    33 begin
    33 begin
    34 if isPaused then exit;
    34 if isPaused then exit;
    51     begin
    51     begin
    52     if not CurrentTeam^.ExtDriven then
    52     if not CurrentTeam^.ExtDriven then
    53        begin
    53        begin
    54        if CurrentHedgehog^.BotLevel <> 0 then ProcessBot;
    54        if CurrentHedgehog^.BotLevel <> 0 then ProcessBot;
    55        ProcessGears;
    55        ProcessGears;
    56        ProcessTouch;
    56        {$IFDEF SDL13}ProcessTouch;{$ENDIF}
    57        end else
    57        end else
    58        begin
    58        begin
    59        NetGetNextCmd;
    59        NetGetNextCmd;
    60        if isInLag then
    60        if isInLag then
    61           case GameType of
    61           case GameType of