Bug#370650: jumpnbump: rabbit disappears in upper left corner

Fabian Greffrath fabian at greffrath.com
Tue Sep 16 14:27:26 UTC 2014


Am Dienstag, den 16.09.2014, 04:18 -0400 schrieb Julian Marchant: 
> Nope. This affects *all* levels (I have about 250 levels from a few
> sources, and I've tested dozens of them). The springs in the top-left
> seem to be something added by the Jump'n'Bump engine, not a part of any
> actual level data.

I think I found the culprit: If the bunny jumps out of the screen, its
y-coordinate becomes negative. Thus, the array that is checked for the
position of the objects on the map overflows and returns some bogus,
e.g. that there are springs whereas there aren't. The attached patch
checks for the y-coordinate and caps it at zero.

Best regards,

Fabian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-springs.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140916/df090da6/attachment.bin>


More information about the Pkg-games-devel mailing list