From 88c01588aa0830e219eaa62588839e4d1e2883ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Wed, 25 Jun 2025 00:44:36 +0500 Subject: Clang-format the entire source code --- game/client/experiments.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'game/client/experiments.cc') 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; + } } } -- cgit