Force to execute kartexec.cfg
This commit is contained in:
1 parent
def20e607b
commit
6c1a5236de
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user