summaryrefslogtreecommitdiffstats
path: root/game/shared/entity/stasis.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
commit6dc5194895b6bd61d19bf5c95021471784084325 (patch)
tree705c35b3a671a09fc52b406dca81e7761729ded6 /game/shared/entity/stasis.cc
parent44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff)
downloadvoxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2
voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/shared/entity/stasis.cc')
-rw-r--r--game/shared/entity/stasis.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/shared/entity/stasis.cc b/game/shared/entity/stasis.cc
index 10e2e0c..68d8e9d 100644
--- a/game/shared/entity/stasis.cc
+++ b/game/shared/entity/stasis.cc
@@ -12,7 +12,8 @@ void entity::Stasis::fixed_update(world::Dimension* dimension)
for(auto [entity, transform] : view.each()) {
if(dimension->find_chunk(transform.chunk)) {
dimension->entities.remove<entity::Stasis>(entity);
- } else {
+ }
+ else {
dimension->entities.emplace_or_replace<entity::Stasis>(entity);
}
}