with statement considered harmful
authornemo
Mon, 05 Dec 2011 23:10:53 -0500
changeset 6507 e462a57f432e
parent 6506 f54c3d087cf9
child 6508 bf5db4517148
with statement considered harmful
hedgewars/GSHandlers.inc
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/FrontendDataUtils.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/GameMode.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Grave.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Map.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Team.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Weapon.java
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/UserInput/TouchInterface.java
share/hedgewars/Data/Scripts/plist/Racer.plist
--- a/hedgewars/GSHandlers.inc	Tue Dec 06 05:53:02 2011 +0200
+++ b/hedgewars/GSHandlers.inc	Mon Dec 05 23:10:53 2011 -0500
@@ -1626,14 +1626,13 @@
     if not haveCollision then
         begin
         if (Gear^.State and gsttmpFlag) <> 0 then
-            with Gear^.Hedgehog^ do
-                begin
-                PlaySound(sndRopeRelease);
-                if CurAmmoType <> amParachute then
-                    RopeWaitCollision(Gear, HHGear)
-                else
-                    RopeDeleteMe(Gear, HHGear)
-                end
+            begin
+            PlaySound(sndRopeRelease);
+            if Gear^.Hedgehog^.CurAmmoType <> amParachute then
+                RopeWaitCollision(Gear, HHGear)
+            else
+                RopeDeleteMe(Gear, HHGear)
+            end
         end
     else
         if (Gear^.State and gsttmpFlag) = 0 then