wops
authorXeli
Sun, 29 Apr 2012 21:17:27 +0200
changeset 6963 0c181b88daff
parent 6962 ec308eabe09b
child 6964 6dde80ae7049
wops
hedgewars/uTeams.pas
hedgewars/uWorld.pas
--- a/hedgewars/uTeams.pas	Sun Apr 29 21:05:09 2012 +0200
+++ b/hedgewars/uTeams.pas	Sun Apr 29 21:17:27 2012 +0200
@@ -37,7 +37,7 @@
 
 implementation
 uses uLocale, uAmmos, uChat, uMobile, uVariables, uUtils, uIO, uCaptions, uCommands, uDebug, uScript,
-    uGearsUtils, uGearsList, uTouch;
+    uGearsUtils, uGearsList{$IFDEF SDL13}, uTouch{$ENDIF};
 
 const MaxTeamHealth: LongInt = 0;
 
@@ -300,7 +300,9 @@
     end;
 
 uMobile.NewTurnBeginning();
+{$IFDEF SDL13}
 uTouch.NewTurnBeginning();
+{$ENDIF}
 ScriptCall('onNewTurn');
 end;
 
--- a/hedgewars/uWorld.pas	Sun Apr 29 21:05:09 2012 +0200
+++ b/hedgewars/uWorld.pas	Sun Apr 29 21:17:27 2012 +0200
@@ -1751,6 +1751,7 @@
 
 procedure SetUtilityWidgetState(ammoType: TAmmoType);
 begin
+{$IFDEF TOUCH_INTERFACE}
 if(ammoType = amNothing)then
     ammoType:= CurrentHedgehog^.CurAmmoType;
 
@@ -1772,6 +1773,7 @@
         end
     else if utilityWidget.show then
         animateWidget(@utilityWidget, true, false); 
+{$ENDIF}
 end;
 
 procedure animateWidget(widget: POnScreenWidget; fade, showWidget: boolean);