From a1db9242ec491efdee70a7184aa61e861b17595a Mon Sep 17 00:00:00 2001 From: BlockMen Date: Wed, 8 Jan 2014 13:47:53 +0100 Subject: Add third person view --- src/hud.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/hud.cpp') 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 @@ -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) { -- cgit v1.2.3