• fluzz's avatar
    Prevent a crash, possibly, due to FP arithmetic accuracy problems when · dade2a74
    fluzz authored
    resolving the virtual position of the player.
    
    When Tux crosses a level's boundary, its position on the reached level
    is computed by resolve_virtual_position().
    
    The new position is then checked and if found invalid, in
    correct_tux_position_according_to_jump(), the game stops.
    
    Due to FP arithmetic accuracy problems, an invalid position can be
    computed in resolve_virtual_position().
    
    This patch tries to avoid such an issue by applying a small correction,
    if needed, to the resolved virtual positions.
    
    Meant to close issue917
    dade2a74
Name
Last commit
Last update
.tx Loading commit data...
data Loading commit data...
doc Loading commit data...
lua Loading commit data...
lua_modules Loading commit data...
m4 Loading commit data...
macosx Loading commit data...
pkgs Loading commit data...
po Loading commit data...
src Loading commit data...
tools Loading commit data...
win32 Loading commit data...
.cppcheck_suppressions Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.reviewboardrc Loading commit data...
ABOUT-NLS Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
FILES Loading commit data...
INSTALL.freedroidRPG Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README-cs Loading commit data...
README-de Loading commit data...
README-es Loading commit data...
README-fr Loading commit data...
README-hu Loading commit data...
README-it Loading commit data...
README-pt_BR Loading commit data...
README-ru Loading commit data...
README-sv Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
freedroidRPG.6 Loading commit data...
include.mk Loading commit data...