Misery falling block glitch.
Brought to you by:
rogueeve
During the final fight against Misery, there is a bug when she tries to summon a falling block on top of Quote. Instead of creating a large block, Misery instead creates a small block and in addition to that transforms herself into a large block. This makes the fight look very glitchy and also messes up her hitbox.
The offending code is in ai/final_battle/misery.cpp, lines 141 to 143:
CreateObject(x, y, OBJ_FALLING_BLOCK); o->sprite = SPR_BALCONY_BLOCK_LARGE; o->dir = DOWN; // tell block it was spawned by Misery
The fix is to create a variable for the falling block object. "o" is the reference to Misery's object.
Object *block = CreateObject(x, y, OBJ_FALLING_BLOCK); block->sprite = SPR_BALCONY_BLOCK_LARGE; block->dir = DOWN; // tell block it was spawned by Misery
This bug does not appear in versions before v1.0.0.6 because in those versions misery would never try to summon a falling block so the buggy block summoning code would never run.