Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Dec 18, 2024
1 parent 4415137 commit 765e5ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion irr/src/CCameraSceneNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const SViewFrustum *CCameraSceneNode::getViewFrustum() const
SViewFrustum CCameraSceneNode::getViewFrustumRel() const
{
SViewFrustum rel;
rel.cameraPosition = core::vector3df(0, 0, 0);
rel.cameraPosition = core::vector3df(0.0f, 0.0f, 0.0f);
rel.setFarNearDistance(ZFar - ZNear);
rel.setFrom(ViewArea.getTransform(video::ETS_PROJECTION), false);
return rel;
Expand Down
12 changes: 6 additions & 6 deletions src/gui/touchcontrols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,17 +657,17 @@ void TouchControls::step(float dtime)
line3d<f32> TouchControls::getShootline()
{
return m_device
->getSceneManager()
->getSceneCollisionManager()
->getRayFromScreenCoordinates(m_move_pos, nullptr, false);
->getSceneManager()
->getSceneCollisionManager()
->getRayFromScreenCoordinates(m_move_pos, nullptr, false);
}

line3d<f32> TouchControls::getShootlineRel()
{
return m_device
->getSceneManager()
->getSceneCollisionManager()
->getRayFromScreenCoordinates(m_move_pos, nullptr, true);
->getSceneManager()
->getSceneCollisionManager()
->getRayFromScreenCoordinates(m_move_pos, nullptr, true);
}

void TouchControls::resetHotbarRects()
Expand Down

0 comments on commit 765e5ef

Please sign in to comment.