summaryrefslogtreecommitdiffstats
path: root/game/client/game.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/client/game.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/client/game.cc')
-rw-r--r--game/client/game.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/client/game.cc b/game/client/game.cc
index 0418236..d5820f4 100644
--- a/game/client/game.cc
+++ b/game/client/game.cc
@@ -512,7 +512,8 @@ void client_game::update(void)
if(session::is_ingame()) {
if(toggles::get(TOGGLE_PM_FLIGHT)) {
globals::dimension->entities.remove<entity::Gravity>(globals::player);
- } else {
+ }
+ else {
globals::dimension->entities.emplace_or_replace<entity::Gravity>(globals::player);
}
}
@@ -574,7 +575,8 @@ void client_game::update_late(void)
if(client_game::vertical_sync.get_value()) {
glfwSwapInterval(1);
- } else {
+ }
+ else {
glfwSwapInterval(0);
}
}