mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-21 07:43:59 -07:00
parent
2042e6b2d4
commit
a0cf780e1e
1 changed files with 3 additions and 1 deletions
|
|
@ -429,7 +429,9 @@ public:
|
|||
|
||||
void Reset(fixed w, fixed h)
|
||||
{
|
||||
Reset(std::max(Index(w), Index(h)) + 1);
|
||||
ENSURE(w >= fixed::Zero() && h >= fixed::Zero());
|
||||
size_t arrayWidth = std::max((w / SUBDIVISION_SIZE).ToInt_RoundToZero(), (h / SUBDIVISION_SIZE).ToInt_RoundToZero()) + 1;
|
||||
Reset(arrayWidth);
|
||||
}
|
||||
|
||||
FastSpatialSubdivision& operator=(const FastSpatialSubdivision& other)
|
||||
|
|
|
|||
Loading…
Reference in a new issue