Skip to content

Commit

Permalink
Fix crosshair not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jul 4, 2022
1 parent 560839a commit ba2f3cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3089,6 +3089,7 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud)

#ifdef HAVE_TOUCHSCREENGUI
if (g_settings->getBool("touchtarget") && g_touchscreengui &&
!g_settings->getBool("use_crosshair") &&
camera->getCameraMode() == CAMERA_MODE_FIRST) {
shootline = g_touchscreengui->getShootline();
// Scale shootline to the acual distance the player can reach
Expand Down

0 comments on commit ba2f3cc

Please sign in to comment.