1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Added support to disable built-in HUD elements

This commit is contained in:
Diego Martínez 2013-04-24 07:52:46 -03:00 committed by Perttu Ahola
parent 33dd267fd9
commit e703c5b81f
13 changed files with 138 additions and 11 deletions

View file

@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "player.h"
#include "hud.h"
#include "constants.h"
#include "gamedef.h"
#include "connection.h" // PEER_ID_INEXISTENT
@ -76,6 +77,11 @@ Player::Player(IGameDef *gamedef):
physics_override_speed = 1;
physics_override_jump = 1;
physics_override_gravity = 1;
hud_flags = HUD_DRAW_HOTBAR
| HUD_DRAW_HEALTHBAR
| HUD_DRAW_CROSSHAIR
| HUD_DRAW_WIELDITEM;
}
Player::~Player()