Fixed cmdline netplay

This commit is contained in:
pagefault
2001-10-01 00:11:40 +00:00
parent 82388f9618
commit 580e7c73cb
2 changed files with 32 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
romtype, scanlines, showallext, smallscreenon, soundon,
spcon, vsyncon, DisplayS, fname, filefound, SnowOn,
NetChatFirst,NetServer,NetNewNick,
NetFilename,TCPIPAddress,NetQuitAfter,UDPConfig;
NetFilename,NetQuitAfter,UDPConfig,CmdLineNetPlay,
CmdLineTCPIPAddress;
void ccmdline(void);
@@ -170,7 +171,8 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdSh
if (strptr<4) {
NetServer=0;
} else {
strp=&TCPIPAddress;
CmdLineNetPlay=1;
strp=&CmdLineTCPIPAddress;
strncpy(strp,ExtA[3],28);
}
}