mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add third person view
This commit is contained in:
parent
e149d1ad9a
commit
a1db9242ec
19 changed files with 270 additions and 22 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue