summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-03 19:17:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:16:22 +0200
commit839ea792d7874d91c7524f4a857e8cd9d8488581 (patch)
tree725f6bae2227550c188a568d9e53858767d927bd
parente5a80257216d76f5033b4120f348f309ca7764f1 (diff)
b
-rw-r--r--src/critter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/critter.cpp b/src/critter.cpp
index b25aaea4..dc1c1237 100644
--- a/src/critter.cpp
+++ b/src/critter.cpp
@@ -369,15 +369,14 @@ void critter::update(const std::shared_ptr<object>& ptrʹ, size_t& i, const Ns&
check_script_update_1(script.state());
script->on_update(std::static_pointer_cast<critter>(ptrʹ), i, dt);
-#if 0
- // for now, objects can't delete themselves
+#if 0 // for now, objects can't delete themselves
if (check_script_update_2(script.state())) [[unlikely]]
return;
#endif
if (playable) [[unlikely]]
{
- movement.AUTO &= !(movement.L | movement.R | movement.U | movement.D);
+ movement.AUTO &= (movement.L | movement.R | movement.U | movement.D) == 0;
if (!movement.AUTO)
{