From: Ketmar Dark Date: Sun, 3 Sep 2017 15:35:13 +0000 (+0300) Subject: mplat bug: it was EXTREMELY wise to ask monster grid for old panel position X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=1a0deddcb78946c8f7eba838d00fec5d6192501f;p=d2df-sdl.git mplat bug: it was EXTREMELY wise to ask monster grid for old panel position --- diff --git a/src/game/g_panel.pas b/src/game/g_panel.pas index ffd7c50..809f781 100644 --- a/src/game/g_panel.pas +++ b/src/game/g_panel.pas @@ -495,9 +495,13 @@ var begin if (proxyId >= 0) then begin - monsGrid.getBodyDims(proxyId, px, py, pw, ph); + mapGrid.getBodyDims(proxyId, px, py, pw, ph); if (px <> x) or (py <> y) or (pw <> Width) or (ph <> Height) then begin + { + e_LogWritefln('panel moved: arridx=%s; guid=%s; proxyid=%s; old:(%s,%s)-(%sx%s); new:(%s,%s)-(%sx%s)', + [arrIdx, mGUID, proxyId, px, py, pw, ph, x, y, width, height]); + } g_Mark(px, py, pw, ph, MARK_WALL, false); if (pw <> Width) or (ph <> Height) then mapGrid.moveResizeBody(proxyId, X, Y, Width, Height) else mapGrid.moveBody(proxyId, X, Y);