From: FGSFDSFGS Date: Tue, 28 Feb 2017 14:37:54 +0000 (+0300) Subject: fixed monster teleport X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=cde2fe32ea377e5a5b2582ab689ce666e19f41b0;p=d2df-sdl.git fixed monster teleport --- diff --git a/src/game/g_triggers.pas b/src/game/g_triggers.pas index c151653..b8e39d6 100644 --- a/src/game/g_triggers.pas +++ b/src/game/g_triggers.pas @@ -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;