X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_grid.pas;h=2dfb0ce43d4ff6cb49dece8b05fe3737ca7221b5;hb=fbbc2cfe8253d61c8a5eb27d352df4103a59b7fb;hp=ce31c63546d60a9721f1211e1cdeab54ad4fa950;hpb=52046a296d5acd6588c2dde5918cdb6cbd26fc52;p=d2df-sdl.git diff --git a/src/game/g_grid.pas b/src/game/g_grid.pas index ce31c63..2dfb0ce 100644 --- a/src/game/g_grid.pas +++ b/src/game/g_grid.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -704,7 +703,7 @@ var cc: PGridCell; presobj: PGridCellCoord; begin - result := CellCoordIter.Create(true); + result := CellCoordIter.Create(framePool); if (body < 0) or (body > High(mProxies)) then begin result.finishIt(); exit; end; for g := 0 to High(mGrid) do begin @@ -737,7 +736,7 @@ var cc: PGridCell; presobj: PITP; begin - result := Iter.Create(true); + result := Iter.Create(framePool); Dec(x, mMinX); Dec(y, mMinY); if (x < 0) or (y < 0) or (x >= mWidth*mTileSize) or (y > mHeight*mTileSize) then begin result.finishIt(); exit; end; @@ -1346,7 +1345,7 @@ var ptag: Integer; presobj: PITP; begin - result := Iter.Create(true); + result := Iter.Create(framePool); tagmask := tagmask and TagFullMask; if (tagmask = 0) then begin result.finishIt(); exit; end; @@ -1438,7 +1437,7 @@ begin exit; end; - result := Iter.Create(true); + result := Iter.Create(framePool); if (w < 1) or (h < 1) then begin result.finishIt(); exit; end; tagmask := tagmask and TagFullMask; @@ -1533,7 +1532,7 @@ var presobj: PITP; begin log := false; - result := Iter.Create(true); + result := Iter.Create(framePool); tagmask := tagmask and TagFullMask; if (tagmask = 0) then begin result.finishIt(); exit; end;