Added support to disable built-in HUD elements
This commit is contained in:
committed by
Perttu Ahola
parent
33dd267fd9
commit
e703c5b81f
@@ -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()
|
||||
|
Reference in New Issue
Block a user