summaryrefslogtreecommitdiffstats
path: root/game/client/experiments.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-25 00:44:36 +0500
committeruntodesu <kirill@untode.su>2025-06-25 00:44:36 +0500
commit88c01588aa0830e219eaa62588839e4d1e2883ce (patch)
tree602bb27dd3399aab4aae8c19630e3b7a8dac824b /game/client/experiments.cc
parent99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff)
downloadvoxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2
voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip
Clang-format the entire source code
Diffstat (limited to 'game/client/experiments.cc')
-rw-r--r--game/client/experiments.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/game/client/experiments.cc b/game/client/experiments.cc
index 6c50ef4..70353b5 100644
--- a/game/client/experiments.cc
+++ b/game/client/experiments.cc
@@ -1,4 +1,5 @@
#include "client/pch.hh"
+
#include "client/experiments.hh"
#include "shared/dimension.hh"
@@ -14,7 +15,7 @@
#include "client/session.hh"
#include "client/status_lines.hh"
-static void on_glfw_mouse_button(const GlfwMouseButtonEvent &event)
+static void on_glfw_mouse_button(const GlfwMouseButtonEvent& event)
{
if(!globals::gui_screen && session::is_ingame()) {
if((event.action == GLFW_PRESS) && (player_target::voxel != NULL_VOXEL_ID)) {
@@ -51,17 +52,14 @@ void experiments::init_late(void)
void experiments::deinit(void)
{
-
}
void experiments::update(void)
{
-
}
void experiments::update_late(void)
{
-
}
void experiments::attack(void)
@@ -72,8 +70,8 @@ void experiments::attack(void)
void experiments::interact(void)
{
if(auto info = item_registry::find(hotbar::slots[hotbar::active_slot])) {
- if(info->place_voxel != NULL_VOXEL_ID)
+ if(info->place_voxel != NULL_VOXEL_ID) {
globals::dimension->set_voxel(info->place_voxel, player_target::coord + player_target::normal);
- return;
+ }
}
}