From 462d1afed8ffbc9a018d07d0c0b280af448e7b52 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 15 Jun 2010 10:32:01 +0000 Subject: AGI: Fix bug #1875842. Bug #1875842: "AGI: Character loses final walking position". Do not reset ADJ_EGO_XY if non-directional keys were pressed. svn-id: r49744 --- engines/agi/keyboard.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/agi/keyboard.cpp') diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index e0e1bca045..056df8f026 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -191,9 +191,8 @@ int AgiEngine::handleController(int key) { } } - v->flags &= ~ADJ_EGO_XY; - if (d || key == KEY_STATIONARY) { + v->flags &= ~ADJ_EGO_XY; v->direction = v->direction == d ? 0 : d; return true; } -- cgit v1.2.3