From a177660344c65f7578c4edc1edf92597da248aec Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Mon, 2 Jan 2023 16:26:30 -0800 Subject: [PATCH] Slightly more efficient fix to level_tug_crate. --- chameleonic.p8 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index 084084c..228d081 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -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