summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-06 03:22:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-06 03:22:09 +0200
commitf18be9b4686fa11f6fd3caf67396894e38a65d3a (patch)
treec5f108bcf3c8189afc02d6b45bd55076c12b300d /src
parent518e8cd4cc14bf04dd08f2f8db793430fea175fd (diff)
bad
Diffstat (limited to 'src')
-rw-r--r--src/critter.cpp7
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;