WohlSoft / LunaLua

LunaLua - LunaDLL with Lua, is a free extension mod for SMBX 1.3 game engine, core of the X2 project.
https://codehaus.moe/
GNU General Public License v3.0
33 stars 12 forks source link

NPC section fix improvements #66

Closed MrDoubleA232 closed 9 months ago

MrDoubleA232 commented 10 months ago

This adds some additional checks to keep NPCs in their current section where reasonable. This allows section wrap to behave as it does without the fix in close sections such as these.

close sections

The calculation for the distance to section boundaries has been improved and now also considers the original boundaries of the section instead of only the current ones.