aboutsummaryrefslogtreecommitdiff
path: root/src/raycast.h
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/raycast.h
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/raycast.h')
-rw-r--r--src/raycast.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raycast.h b/src/raycast.h
index 4f5ca2a5b..38190287f 100644
--- a/src/raycast.h
+++ b/src/raycast.h
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
//! Sorts PointedThings based on their distance.
struct RaycastSort
{
- bool operator() (const PointedThing &pt1, const PointedThing &pt2) const;
+ bool operator()(const PointedThing &pt1, const PointedThing &pt2) const;
};
//! Describes the state of a raycast.
@@ -38,7 +38,7 @@ public:
* @param liquids pointable if false, liquid nodes won't be found
*/
RaycastState(const core::line3d<f32> &shootline, bool objects_pointable,
- bool liquids_pointable, bool nodes_pointable = true);
+ bool liquids_pointable, bool nodes_pointable = true);
//! Shootline of the raycast.
core::line3d<f32> m_shootline;
@@ -58,7 +58,7 @@ public:
bool m_nodes_pointable;
//! The code needs to search these nodes around the center node.
- core::aabbox3d<s16> m_search_range { 0, 0, 0, 0, 0, 0 };
+ core::aabbox3d<s16> m_search_range{0, 0, 0, 0, 0, 0};
//! If true, the Environment will initialize this state.
bool m_initialization_needed = true;
@@ -75,4 +75,4 @@ public:
* @returns true if a collision point was found
*/
bool boxLineCollision(const aabb3f &box, const v3f &start, const v3f &dir,
- v3f *collision_point, v3s16 *collision_normal);
+ v3f *collision_point, v3s16 *collision_normal);