Fix rules

This commit is contained in:
Agent X 2024-07-02 14:19:35 -04:00
parent 727ebd8bf1
commit b4cd98da60
2 changed files with 1 additions and 8 deletions

View file

@ -84,12 +84,6 @@ static void djui_panel_host_do_host(struct DjuiBase* caller) {
if (gNetworkType == NT_SERVER) { if (gNetworkType == NT_SERVER) {
network_rehost_begin(); network_rehost_begin();
} else if (configNetworkSystem == NS_COOPNET || configAmountofPlayers == 1) { } 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(); network_reset_reconnect_and_rehost();
djui_panel_do_host(false, true); djui_panel_do_host(false, true);
} else { } else {

View file

@ -9,7 +9,6 @@
static char sRules[512]; static char sRules[512];
static void djui_panel_rules_deny(struct DjuiBase* caller) { static void djui_panel_rules_deny(struct DjuiBase* caller) {
configRulesVersion = 0;
djui_panel_menu_back(caller); djui_panel_menu_back(caller);
} }
@ -57,7 +56,7 @@ DLANG(RULES, RULE_5));
struct DjuiRect* rect = djui_rect_container_create(body, 64); 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); djui_button_right_create(&rect->base, DLANG(MENU, YES), DJUI_BUTTON_STYLE_NORMAL, djui_panel_rules_accept);
} }
} else { } else {