mirror of
https://github.com/vrld/HC.git
synced 2024-12-08 15:04:23 +00:00
Fix typo
This commit is contained in:
parent
4e6d4be0e9
commit
68af2448fd
@ -105,9 +105,9 @@ function Spatialhash:update(obj, ul_old, lr_old, ul_new, lr_new)
|
|||||||
local region_old = i >= ul_old.x and i <= lr_old.x and k >= ul_old.y and k <= lr_old.y
|
local region_old = i >= ul_old.x and i <= lr_old.x and k >= ul_old.y and k <= lr_old.y
|
||||||
local region_new = i >= ul_new.x and i <= lr_new.x and k >= ul_new.y and k <= lr_new.y
|
local region_new = i >= ul_new.x and i <= lr_new.x and k >= ul_new.y and k <= lr_new.y
|
||||||
if region_new and not region_old then
|
if region_new and not region_old then
|
||||||
rawset(self.cells[{x=i,y=k}, obj, obj)
|
rawset(self.cells[{x=i,y=k}], obj, obj)
|
||||||
elseif not region_new and region_old then
|
elseif not region_new and region_old then
|
||||||
rawset(self.cells[{x=i,y=k}, obj, nil)
|
rawset(self.cells[{x=i,y=k}], obj, nil)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user