From af97632dc139e495f775cb9f065a48c258942b35 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 11 Dec 2012 03:40:20 +0100 Subject: fix a bug with level nodes and the HUD --- src/koopatlas/pathmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index acf8995..109f791 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -630,7 +630,7 @@ void dWMPathManager_c::moveThroughPath(int pressedDir) { daWMPlayer_c *player = daWMPlayer_c::instance; - if (pressedDir >= 0) { + if (pressedDir >= 0 && !calledEnteredNode) { int whatDirDegrees = ((int)(atan2(to->x-from->x, to->y-from->y) / ((M_PI * 2) / 360.0)) + 360) % 360; // dirs are: left, right, up, down int whatDir; -- cgit v1.2.3