DEADSOFTWARE

grid: fixed update bug with resized bodies ('cmon, missing '-1' is *so* well-known...
[d2df-sdl.git] / src / game / g_panel.pas
index 3dfae209a4e38f0f71c35c4d3e6d3928a5499ef8..7651b48a17326b5ea5efd06b208f55de3e2229f5 100644 (file)
@@ -528,8 +528,15 @@ begin
       else
       begin
         mapGrid.proxyEnabled[proxyId] := Enabled;
-        if (pw <> Width) or (ph <> Height) then mapGrid.moveResizeBody(proxyId, X, Y, Width, Height)
-        else mapGrid.moveBody(proxyId, X, Y);
+        if (pw <> Width) or (ph <> Height) then
+        begin
+          //writeln('panel resize!');
+          mapGrid.moveResizeBody(proxyId, X, Y, Width, Height)
+        end
+        else
+        begin
+          mapGrid.moveBody(proxyId, X, Y);
+        end;
         g_Mark(X, Y, Width, Height, MARK_WALL);
       end;
     end;