mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add third person view
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user