branch | hedgeroid |
changeset 5599 | 2e4b90f33a83 |
parent 5357 | ec36f3d53f3c |
child 5605 | 31bd6e30df02 |
5597:14b3cdb23c2c | 5599:2e4b90f33a83 |
---|---|
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; |
29 uses uKeys, uTeams, uIO, uAI, uGears, uSound, uMobile, uVisualGears, uTypes, uVariables, uTouch; |
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; |
50 while (GameState <> gsExit) and (i <= Lag) do |
50 while (GameState <> gsExit) and (i <= Lag) do |
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 ProcessTouch; |
|
55 ProcessGears |
56 ProcessGears |
56 end else |
57 end else |
57 begin |
58 begin |
58 NetGetNextCmd; |
59 NetGetNextCmd; |
59 if isInLag then |
60 if isInLag then |