From c8cdaef918ec3573d860c04b9a1786538be6c776 Mon Sep 17 00:00:00 2001 From: dm33tri Date: Tue, 27 Mar 2018 02:00:16 +0700 Subject: FULLPIPE: fix #10321 "Hardlock when stepping onto stool" Scene 22 now doesn't freeze when pulling lever with stool under it--- engines/fullpipe/scenes/scene22.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/scenes/scene22.cpp b/engines/fullpipe/scenes/scene22.cpp index 5b9b091f36..f71460576f 100644 --- a/engines/fullpipe/scenes/scene22.cpp +++ b/engines/fullpipe/scenes/scene22.cpp @@ -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)))) { -- cgit v1.2.3