Skip to content

Commit

Permalink
Use !isNoCrosshairAllowed() instead
Browse files Browse the repository at this point in the history
The case of third-person front camera is already covered in other places.
  • Loading branch information
srifqi committed Sep 28, 2022
1 parent 46aa095 commit 97ec893
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2991,8 +2991,7 @@ void Game::updateCamera(f32 dtime)

#ifdef HAVE_TOUCHSCREENGUI
if (g_touchscreengui)
g_touchscreengui->setUseCrosshair(m_touch_use_crosshair ||
camera->getCameraMode() == CAMERA_MODE_THIRD);
g_touchscreengui->setUseCrosshair(!isNoCrosshairAllowed());
#endif

// Make the player visible depending on camera mode.
Expand Down

0 comments on commit 97ec893

Please sign in to comment.