mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Minor refactor
This commit is contained in:
parent
7ab69ebc1e
commit
41f9c51a27
4 changed files with 37 additions and 26 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include "gui/GUI.h"
|
||||
#include "screens.h"
|
||||
#include "../engine.h"
|
||||
#include "../core_defs.h"
|
||||
|
||||
using std::wstring;
|
||||
using std::shared_ptr;
|
||||
|
|
@ -309,7 +310,7 @@ void HudRenderer::draw(const GfxContext& ctx){
|
|||
pauseMenu->visible(true);
|
||||
}
|
||||
}
|
||||
if (Events::jactive("hud.inventory")) {
|
||||
if (Events::jactive(BIND_HUD_INVENTORY)) {
|
||||
if (!pause) {
|
||||
inventoryOpen = !inventoryOpen;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue