From 839ea792d7874d91c7524f4a857e8cd9d8488581 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 May 2024 19:17:59 +0200 Subject: b --- src/critter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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& ptrʹ, size_t& i, const Ns& check_script_update_1(script.state()); script->on_update(std::static_pointer_cast(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) { -- cgit v1.2.3