DEADSOFTWARE

fixed monster teleport
authorFGSFDSFGS <derp.primus@gmail.com>
Tue, 28 Feb 2017 14:37:54 +0000 (17:37 +0300)
committerFGSFDSFGS <derp.primus@gmail.com>
Tue, 28 Feb 2017 14:37:54 +0000 (17:37 +0300)
src/game/g_triggers.pas

index c1516535c11decd0fc4a9dad7c23044479811b23..b8e39d6873b6601f479dd8f2593e2f97fcddef41 100644 (file)
@@ -731,8 +731,8 @@ begin
 
         if D2D then
           begin
-            if m.TeleportTo(TX-(p.Obj.Rect.Width div 2),
-                            TY-p.Obj.Rect.Height,
+            if m.TeleportTo(TX-(m.Obj.Rect.Width div 2),
+                            TY-m.Obj.Rect.Height,
                             Silent,
                             TDir) then
               Result := True;