Removed the second hijack location as it is never accessed - nothing else was changed. Note that, if Mario takes damage while cape gliding, he no longer loses his glide and enters spin jump state - he simply bounces back still in glide state.
This patch doesn’t have any real need to run in freespace, either. Enough of the original hurt routine is bypassed that all new code may be written directly at the hijack. Simply remove “autoclean JML NewRoutine” and “freecode” to enable this behavior if desired.
Tested with Asar 1.71, Lunar Magic 3.04, SA-1 1.32, Snes9x 1.59.2.