diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index c8d9f14b31f3cc352757d703b32bc996f61b659e..11a7d79459680c945d174ca81c4bb45c4618d279 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
pan: TPanel;
begin
pan := (flesh as TPanel);
- aabb.setXYWH(pan.X, pan.Y, pan.Width, pan.Height);
+ aabb.setDims(pan.X, pan.Y, pan.X+pan.Width-1, pan.Y+pan.Height-1);
result := true;
end;
gMapGrid.dumpStats();
e_WriteLog(Format('tree depth: %d; %d nodes used, %d nodes allocated', [mapTree.computeTreeHeight, mapTree.nodeCount, mapTree.nodeAlloced]), MSG_NOTIFY);
+ mapTree.forEachLeaf(nil);
end;
function g_Map_Load(Res: String): Boolean;