summaryrefslogtreecommitdiff
path: root/src/hud.cpp
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2014-01-08 13:47:53 +0100
committerBlockMen <nmuelll@web.de>2014-04-12 17:44:15 +0200
commita1db9242ec491efdee70a7184aa61e861b17595a (patch)
tree04bdd2302f8b3c4285ddb8f5ba669f7adc6bf4b9 /src/hud.cpp
parente149d1ad9a623b9f8ca597839f7b850841c54781 (diff)
downloadminetest-a1db9242ec491efdee70a7184aa61e861b17595a.tar.gz
minetest-a1db9242ec491efdee70a7184aa61e861b17595a.tar.bz2
minetest-a1db9242ec491efdee70a7184aa61e861b17595a.zip
Add third person view
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) {