small code cleanup
authorsheepluva
Thu, 10 Sep 2015 04:59:02 +0200
changeset 11077 1fb80cd8ba7b
parent 11074 722567479fab
child 11151 5c40c65b619d
small code cleanup
hedgewars/uCollisions.pas
share/hedgewars/Data/Locale/en.txt
--- a/hedgewars/uCollisions.pas	Fri Sep 04 08:14:12 2015 -0400
+++ b/hedgewars/uCollisions.pas	Thu Sep 10 04:59:02 2015 +0200
@@ -211,10 +211,15 @@
     i:= y + Gear^.Radius * 2 - 2;
     repeat
         if (y and LAND_HEIGHT_MASK) = 0 then
-            if Land[y, x] and Gear^.CollisionMask > 255 then
-                exit(Land[y, x] and Gear^.CollisionMask)
-            else if Land[y, x] and Gear^.CollisionMask <> 0 then
-                pixel:= Land[y, x] and Gear^.CollisionMask;
+            begin
+            if Land[y, x] and Gear^.CollisionMask <> 0 then
+                begin
+                if Land[y, x] and Gear^.CollisionMask > 255 then
+                    exit(Land[y, x] and Gear^.CollisionMask)
+                else
+                    pixel:= Land[y, x] and Gear^.CollisionMask;
+                end;
+            end;
     inc(y)
     until (y > i);
     end;
@@ -274,10 +279,12 @@
     repeat
     if (x and LAND_WIDTH_MASK) = 0 then
         if Land[y, x] > 0 then
+            begin
             if Land[y, x] and Gear^.CollisionMask > 255 then
                 exit(Land[y, x] and Gear^.CollisionMask)
-            else if Land[y, x] <> 0 then
+            else // if Land[y, x] <> 0 then
                 pixel:= Land[y, x] and Gear^.CollisionMask;
+            end;
     inc(x)
     until (x > i);
     end;
--- a/share/hedgewars/Data/Locale/en.txt	Fri Sep 04 08:14:12 2015 -0400
+++ b/share/hedgewars/Data/Locale/en.txt	Thu Sep 10 04:59:02 2015 +0200
@@ -103,7 +103,6 @@
 02:00=%1 has timed out!
 02:00=%1 says peace out!
 02:00=%1 will be fondly remembered!
-02:00=%1 has an aneurysm!
 02:00=%1 leaves behind a wife and child
 02:00=%1 has launched his last bazooka
 02:00=%1 has tossed his last grenade