Slightly more efficient fix to level_tug_crate.
This commit is contained in:
parent
49284d44a8
commit
a177660344
@ -659,8 +659,7 @@ end
|
||||
-- must be a free function
|
||||
-- to use as a foreach target
|
||||
function level_tug_crate(t)
|
||||
local self=level
|
||||
local mx0,my0,dmx,dmy=unpack(t)
|
||||
local self,mx0,my0,dmx,dmy=level,unpack(t)
|
||||
local mxy0=_mix{mx0,my0}
|
||||
local existing=self._crates[mxy0]
|
||||
if (not existing) return
|
||||
|
Loading…
Reference in New Issue
Block a user