hedgewars/uMobile.pas
changeset 6624 e049b5bb0ad1
parent 6601 5965e2927b3d
child 6700 e04da46ee43c
--- a/hedgewars/uMobile.pas	Sat Feb 04 23:06:22 2012 +0100
+++ b/hedgewars/uMobile.pas	Sun Feb 05 15:52:26 2012 +0100
@@ -27,7 +27,6 @@
 procedure startLoadingIndicator; cdecl; external;
 procedure stopLoadingIndicator; cdecl; external;
 procedure saveFinishedSynching; cdecl; external;
-procedure updateVisualsNewTurn; cdecl; external;
 function  isApplePhone: Boolean; cdecl; external;
 procedure AudioServicesPlaySystemSound(num: LongInt); cdecl; external;
 {$ENDIF}
@@ -36,7 +35,6 @@
 
 procedure GameLoading; inline;
 procedure GameLoaded; inline;
-procedure AmmoUpdate; // do not inline
 procedure NewTurnBeginning; inline;
 procedure SaveLoadingEnded; inline;
 
@@ -88,21 +86,11 @@
 {$ENDIF}
 end;
 
-procedure AmmoUpdate; // do not inline
-begin
-{$IFDEF IPHONEOS}
-    if (CurrentTeam = nil) or (CurrentTeam^.ExtDriven) or (CurrentTeam^.Hedgehogs[0].BotLevel <> 0) then
-        exit(); // the other way around throws a compiler error
-    updateVisualsNewTurn();
-{$ENDIF}
-end;
-
 procedure NewTurnBeginning; inline;
 begin
 {$IFDEF IPHONEOS}
     clearView();
 {$ENDIF}
-    AmmoUpdate();
 end;
 
 procedure SaveLoadingEnded; inline;