mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Fix rules
This commit is contained in:
parent
727ebd8bf1
commit
b4cd98da60
2 changed files with 1 additions and 8 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue