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 ceiling bug fix #75

Closed MrDoubleA232 closed 4 months ago

MrDoubleA232 commented 8 months ago

Fixes NPCs often getting an incorrect vertical speed assigned when hitting a ceiling. Just NOPs out the chunk of code that moves B into the edi register, thus allowing winningBlock to stay in place (relevant source). Revertible by an FFI function. Thanks, of course, to ds-sloth for finding and explaining the cause of the issue!