Minor refactor

This commit is contained in:
MihailRis
2023-11-19 23:18:26 +03:00
parent 7ab69ebc1e
commit 41f9c51a27
4 changed files with 37 additions and 26 deletions
+2 -1
View File
@@ -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;
}