diff options
Diffstat (limited to 'src/koopatlas/player.cpp')
-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); |