1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-19 21:09:29 +00:00

Minor script fixes

- Bigmouth & Grabbyarm will no longer spam "entity invalid pointer"
- Make Huggys follow through local warps (thx to Andrew Church for this)
This commit is contained in:
fgenesis 2012-03-14 01:00:46 +01:00
commit 0cdbc66c02
3 changed files with 4 additions and 2 deletions

View file

@ -123,7 +123,7 @@ function update(me, dt)
v.grabbedEnt = v.n
entity_setState(me, STATE_TRAP)
elseif entity_isEntityInRange(me, v.li, grabRange) then
elseif v.li ~= 0 and entity_isEntityInRange(me, v.li, grabRange) then
v.grabbedEnt = v.li
entity_setState(me, STATE_TRAP)