summaryrefslogtreecommitdiff
path: root/src/koopatlas/player.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-22 03:56:04 +0200
committerTreeki <treeki@gmail.com>2012-09-22 03:56:04 +0200
commit224cecc27eedc20e4397eb5b196a6555990fd594 (patch)
treeadd0097cfddadbbe4358f721dddac74d29a91c3d /src/koopatlas/player.cpp
parent5654d5c0a056f9cfc99ac608d16aa0a601b997f5 (diff)
downloadkamek-224cecc27eedc20e4397eb5b196a6555990fd594.tar.gz
kamek-224cecc27eedc20e4397eb5b196a6555990fd594.zip
fixed moving after change nodes
Diffstat (limited to '')
-rw-r--r--src/koopatlas/player.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/koopatlas/player.cpp b/src/koopatlas/player.cpp
index 51470da..ebd0124 100644
--- a/src/koopatlas/player.cpp
+++ b/src/koopatlas/player.cpp
@@ -38,6 +38,11 @@ int daWMPlayer_c::onDelete() {
int daWMPlayer_c::onExecute() {
+ if (!dScKoopatlas_c::instance->mapIsRunning())
+ return true;
+
+ dScKoopatlas_c::instance->pathManager.execute();
+
this->modelHandler->update();
Vec modifiedPos = {pos.x, pos.y + jumpOffset, pos.z};
this->modelHandler->setSRT(modifiedPos, this->rot, this->scale);