prevent sentries from getting stuck on mines
authoralfadur
Tue, 30 Jun 2020 23:25:52 +0300
changeset 15684 41121e2f5c03
parent 15683 255422cd8a44
child 15687 63e2b7b2ec47
prevent sentries from getting stuck on mines
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Tue Jun 30 22:36:53 2020 +0300
+++ b/hedgewars/uGearsHandlersMess.pas	Tue Jun 30 23:25:52 2020 +0300
@@ -7255,7 +7255,7 @@
     if CheckGearDrowning(Gear) then
         exit;
 
-    if TestCollisionY(Gear, 1) = 0 then
+    if TestCollisionYwithGear(Gear, 1) = 0 then
     begin
         doStepFallingGear(Gear);
         if Gear^.Tag <> sentry_Idle then