prevent sentries from getting stuck on mines default tip
authoralfadur
Tue, 30 Jun 2020 23:25:52 +0300
changeset 15662 41121e2f5c03
parent 15661 255422cd8a44
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