Force Direct Connection if singleplayer

This commit is contained in:
Agent X 2023-12-30 12:17:03 -05:00
parent 97633044c4
commit 2bf4386928
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ void djui_panel_do_host(bool reconnecting) {
#ifndef COOPNET #ifndef COOPNET
if (configNetworkSystem == NS_COOPNET) { configNetworkSystem = NS_SOCKET; } if (configNetworkSystem == NS_COOPNET) { configNetworkSystem = NS_SOCKET; }
#endif #endif
if (configNetworkSystem == NS_COOPNET && configAmountofPlayers < 2) { configNetworkSystem = NS_SOCKET; }
if (configNetworkSystem >= NS_MAX) { configNetworkSystem = NS_MAX; } if (configNetworkSystem >= NS_MAX) { configNetworkSystem = NS_MAX; }
network_set_system(configNetworkSystem); network_set_system(configNetworkSystem);