Skip to content

Commit

Permalink
FULLPIPE: fix #10321 "Hardlock when stepping onto stool"
Browse files Browse the repository at this point in the history
Scene 22 now doesn't freeze when pulling lever with stool under it
  • Loading branch information
dm33tri authored and sev- committed Mar 26, 2018
1 parent 32a84f1 commit c8cdaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene22.cpp
Expand Up @@ -218,7 +218,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) {
ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_TABURETTE, -1);
if (ani && (ani->_flags & 4)) {
int x = g_fp->_aniMan->_ox;
int y = g_fp->_aniMan->_ox;
int y = g_fp->_aniMan->_oy;

if (sqrt((double)((841 - x) * (841 - x) + (449 - y) * (449 - y)))
< sqrt((double)((1075 - x) * (1075 - x) + (449 - y) * (449 - y)))) {
Expand Down

0 comments on commit c8cdaef

Please sign in to comment.