From b4cd98da60e65be61452fedea988675aa7db5968 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:19:35 -0400 Subject: [PATCH] Fix rules --- src/pc/djui/djui_panel_host.c | 6 ------ src/pc/djui/djui_panel_rules.c | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pc/djui/djui_panel_host.c b/src/pc/djui/djui_panel_host.c index 0bd65008..aaafa318 100644 --- a/src/pc/djui/djui_panel_host.c +++ b/src/pc/djui/djui_panel_host.c @@ -84,12 +84,6 @@ static void djui_panel_host_do_host(struct DjuiBase* caller) { if (gNetworkType == NT_SERVER) { network_rehost_begin(); } else if (configNetworkSystem == NS_COOPNET || configAmountofPlayers == 1) { -#ifdef COOPNET - if (sInputboxPassword->buffer[0] == '\0' && configRulesVersion != RULES_VERSION && configAmountofPlayers > 1) { - djui_panel_rules_create(caller); - return; - } -#endif network_reset_reconnect_and_rehost(); djui_panel_do_host(false, true); } else { diff --git a/src/pc/djui/djui_panel_rules.c b/src/pc/djui/djui_panel_rules.c index dab0998a..17e6e569 100644 --- a/src/pc/djui/djui_panel_rules.c +++ b/src/pc/djui/djui_panel_rules.c @@ -9,7 +9,6 @@ static char sRules[512]; static void djui_panel_rules_deny(struct DjuiBase* caller) { - configRulesVersion = 0; djui_panel_menu_back(caller); } @@ -57,7 +56,7 @@ DLANG(RULES, RULE_5)); struct DjuiRect* rect = djui_rect_container_create(body, 64); { - djui_button_left_create(&rect->base, DLANG(MENU, NO), DJUI_BUTTON_STYLE_BACK, djui_panel_rules_deny); + djui_button_left_create(&rect->base, DLANG(MENU, BACK), DJUI_BUTTON_STYLE_BACK, djui_panel_rules_deny); djui_button_right_create(&rect->base, DLANG(MENU, YES), DJUI_BUTTON_STYLE_NORMAL, djui_panel_rules_accept); } } else {