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

Fix NPC sections when they're out of bounds #46

Closed MrDoubleA232 closed 2 years ago

MrDoubleA232 commented 2 years ago

Replaces the sub that handles section finding for NPC's. The NPC no longer needs to be fully inside the section bounds, and if it isn't inside of any sections, it uses the closest one. The behaviour can be returned to the original via Misc.SetNPCSectionFix. Needs a different ffi_misc.lua.