summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/pathmanager.cpp2
1 files changed, 1 insertions, 1 deletions
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;