diff options
author | Treeki <treeki@gmail.com> | 2012-09-22 03:56:04 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-22 03:56:04 +0200 |
commit | 224cecc27eedc20e4397eb5b196a6555990fd594 (patch) | |
tree | add0097cfddadbbe4358f721dddac74d29a91c3d /src/koopatlas/player.cpp | |
parent | 5654d5c0a056f9cfc99ac608d16aa0a601b997f5 (diff) | |
download | kamek-224cecc27eedc20e4397eb5b196a6555990fd594.tar.gz kamek-224cecc27eedc20e4397eb5b196a6555990fd594.zip |
fixed moving after change nodes
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/player.cpp | 5 |
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); |