hedgewars/uMobile.pas
changeset 3940 cc29628976cc
parent 3935 5ca27a0e9a63
child 3948 24daa33a3114
--- a/hedgewars/uMobile.pas	Sat Oct 09 18:01:47 2010 +0200
+++ b/hedgewars/uMobile.pas	Sun Oct 10 02:06:42 2010 +0200
@@ -41,6 +41,7 @@
 procedure perfExt_SaveFinishedSynching;
 
 implementation
+uses uTeams;
 
 function isPhone: Boolean;
 begin
@@ -72,6 +73,8 @@
 procedure perfExt_AmmoUpdate;
 begin
 {$IFDEF IPHONEOS}
+    if (CurrentTeam^.ExtDriven) or (CurrentTeam^.Hedgehogs[0].BotLevel <> 0) then
+        exit(); // the other way around throws a compiler error
     updateVisualsNewTurn();
 {$ENDIF}
 end;