diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-03 19:17:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:16:22 +0200 |
commit | 839ea792d7874d91c7524f4a857e8cd9d8488581 (patch) | |
tree | 725f6bae2227550c188a568d9e53858767d927bd /src/critter.cpp | |
parent | e5a80257216d76f5033b4120f348f309ca7764f1 (diff) |
b
Diffstat (limited to 'src/critter.cpp')
-rw-r--r-- | src/critter.cpp | 5 |
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) { |