Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 37fe7e4

Browse files
authored
[bugfix] disable redundant settings on hide n seek (#592)
1 parent ca06655 commit 37fe7e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gui/tabs/doors_tab.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace DoorsTab {
1010
void Render() {
11-
if (IsInGame() && !State.mapDoors.empty()) {
11+
GameOptions options;
12+
if (IsInGame() && !State.mapDoors.empty() && options.GetGameMode() != GameModes__Enum::HideNSeek) {
1213
if (ImGui::BeginTabItem("Doors")) {
1314
ImGui::BeginChild("doors#list", ImVec2(200, 0) * State.dpiScale, true);
1415
bool shouldEndListBox = ImGui::ListBoxHeader("###doors#list", ImVec2(200, 150) * State.dpiScale);

gui/tabs/sabotage_tab.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace SabotageTab {
1010
void Render() {
11-
if (IsInGame()) {
11+
GameOptions options;
12+
if (IsInGame() && options.GetGameMode() != GameModes__Enum::HideNSeek) {
1213
if (ImGui::BeginTabItem("Sabotage")) {
1314
ImGui::Dummy(ImVec2(4, 4) * State.dpiScale);
1415
if (ImGui::Button("Repair Sabotage")) {

0 commit comments

Comments
 (0)