From f18be9b4686fa11f6fd3caf67396894e38a65d3a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 6 May 2024 03:22:09 +0200 Subject: bad --- src/critter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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& ptrʹ, size_t& i, const Ns& fm_debug_assert(&*ptrʹ == this); check_script_update_1(script.state()); - script->on_update(std::static_pointer_cast(ptrʹ), i, dt); + Debug{} << "i before" << i; + //script->on_update(std::static_pointer_cast(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; -- cgit v1.2.3