diff --git a/src/d_main.c b/src/d_main.c index e7633bf57..dcffc49f0 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1446,7 +1446,7 @@ void D_SRB2Main(void) if (D_CheckNetGame()) autostart = true; - if (splitscreen && !M_CheckParm("-connect")) // Make sure multiplayer & autostart is set if you have splitscreen, even after D_CheckNetGame + if (splitscreen && !M_CheckParm("-connect") && !M_CheckProtoParam("ip")) // Make sure multiplayer & autostart is set if you have splitscreen, even after D_CheckNetGame multiplayer = autostart = true; // check for a driver that wants intermission stats diff --git a/src/i_tcp.c b/src/i_tcp.c index cd2560ad6..144ddf3a6 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -183,6 +183,7 @@ static UINT8 UPNP_support = TRUE; #include "i_tcp.h" #include "m_argv.h" #include "stun.h" +#include "d_main.h" #include "doomstat.h" @@ -1566,6 +1567,8 @@ boolean I_InitTcpNetwork(void) } if (M_CheckProtoParam("ip")) { + COM_ImmedExecute(va("exec \"%s"PATHSEP"kartexec.cfg\" -noerror\n", srb2home)); + strcpy(serverhostname, M_GetProtoParam()); // server address only in ip