summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-12-11 03:40:20 +0100
committerTreeki <treeki@gmail.com>2012-12-11 03:40:20 +0100
commitaf97632dc139e495f775cb9f065a48c258942b35 (patch)
treea79eff975022b5ef7fee6c01cc3af2d7e3d861f0 /src/koopatlas
parent7c578a6a1a10cfdc48c3dd8650631e45dbbf607d (diff)
downloadkamek-af97632dc139e495f775cb9f065a48c258942b35.tar.gz
kamek-af97632dc139e495f775cb9f065a48c258942b35.zip
fix a bug with level nodes and the HUD
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;