Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crosshair support for Android #7865

Merged
merged 7 commits into from
Sep 29, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Android: Fix selection mesh not updating when crosshair moves
  • Loading branch information
rubenwardy authored and srifqi committed Sep 28, 2022
commit 7b59a5b3e7d3e4ae69c0198cf07e9ef22c945366
1 change: 1 addition & 0 deletions src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3104,6 +3104,7 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud)

#ifdef HAVE_TOUCHSCREENGUI
if (g_settings->getBool("touchtarget") && g_touchscreengui &&
!g_settings->getBool("use_crosshair") &&
srifqi marked this conversation as resolved.
Show resolved Hide resolved
camera->getCameraMode() == CAMERA_MODE_FIRST) {
shootline = g_touchscreengui->getShootline();
// Scale shootline to the acual distance the player can reach
Expand Down