summaryrefslogtreecommitdiffstats
path: root/game/client/player_target.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/player_target.cc
parent99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff)
downloadvoxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2
voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip
Clang-format the entire source code
Diffstat (limited to 'game/client/player_target.cc')
-rw-r--r--game/client/player_target.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/client/player_target.cc b/game/client/player_target.cc
index 0c91876..9c60c00 100644
--- a/game/client/player_target.cc
+++ b/game/client/player_target.cc
@@ -1,4 +1,5 @@
#include "client/pch.hh"
+
#include "client/player_target.hh"
#include "shared/coord.hh"
@@ -16,7 +17,7 @@ constexpr static float MAX_REACH = 16.0f;
voxel_id player_target::voxel;
voxel_pos player_target::coord;
voxel_pos player_target::normal;
-const VoxelInfo *player_target::info;
+const VoxelInfo* player_target::info;
void player_target::init(void)
{
@@ -45,8 +46,7 @@ void player_target::update(void)
player_target::normal = voxel_pos();
player_target::info = nullptr;
} while(ray.distance < MAX_REACH);
- }
- else {
+ } else {
player_target::voxel = NULL_VOXEL_ID;
player_target::coord = voxel_pos();
player_target::normal = voxel_pos();