diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/critter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/critter.cpp b/src/critter.cpp index 42a3e591..00c83e53 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -367,13 +367,14 @@ void critter::update(const std::shared_ptr<object>& ptrʹ, size_t& i, const Ns& fm_debug_assert(&*ptrʹ == this); check_script_update_1(script.state()); - script->on_update(std::static_pointer_cast<critter>(ptrʹ), i, dt); + Debug{} << "i before" << i; + //script->on_update(std::static_pointer_cast<critter>(ptrʹ), i, dt); + Debug{} << "i after" << i; #if 0 // for now, objects can't delete themselves if (check_script_update_2(script.state())) [[unlikely]] return; #endif - - if (playable) [[unlikely]] + if (playable && !movement.AUTO) [[unlikely]] { movement.AUTO &= (movement.L | movement.R | movement.U | movement.D) == 0; |