Martin Erik Werner <martinerikwer...@gmail.com> writes:

> Here is a patch which fixes this issue for me, it is based on a
> suggestion at
> http://egoboo.sourceforge.net/phpBB3/viewtopic.php?f=3&t=1177&p=61333#p61333, 
> see the DEP-3 header for more information.

That patch adds casts to two control_is_pressed subtractions in
set_one_player_latch.  However, the bug also occurs in three
statements in camera_move.  IIRC, this causes sprites to
disappear when you try to rotate the camera.  Instead of adding
casts to each of those calls, I recommend changing
control_is_pressed so it returns int.

In https://egoboo.svn.sourceforge.net/svnroot/egoboo/branches/2.8.x/,
control_is_pressed has been renamed to input_device_control_active,
and game/camera.c and game/game.c no longer do arithmetic with its
return values.

Attachment: pgpJYAtwvkiJg.pgp
Description: PGP signature

Reply via email to