libretro / nxengine-libretro

Port of NxEngine to the libretro API. NXEngine is a Cave Story game engine clone
85 stars 89 forks source link

Fix segfault caused by Toroko's sprite #18

Closed chrisacheson closed 9 years ago

chrisacheson commented 9 years ago

Some of the bounds checking code was removed from SDL_UpperBlit() by commit 40126b8. Some frames of Toroko's sprite have a negative y-offset, so they'll cause a segmentation fault at the start of the Sand Zone warehouse boss fight if not clipped properly. This commit fixes the segfault by restoring the old bounds checking code.