summaryrefslogtreecommitdiff
path: root/src/hud.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hud.cpp')
-rw-r--r--src/hud.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hud.cpp b/src/hud.cpp
index f87fdfc14..d21011176 100644
--- a/src/hud.cpp
+++ b/src/hud.cpp
@@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "tile.h"
#include "localplayer.h"
#include "camera.h"
+#include "game.h" // CameraModes
#include <IGUIStaticText.h>
@@ -384,7 +385,8 @@ void Hud::drawHotbar(v2s32 centerlowerpos, s32 halfheartcount, u16 playeritem, s
void Hud::drawCrosshair() {
- if (!(player->hud_flags & HUD_FLAG_CROSSHAIR_VISIBLE))
+ if (!(player->hud_flags & HUD_FLAG_CROSSHAIR_VISIBLE) ||
+ player->camera_mode == CAMERA_MODE_THIRD_FRONT)
return;
if (use_crosshair_image) {