summaryrefslogtreecommitdiff
path: root/src/net_sdl.c
diff options
context:
space:
mode:
authorSimon Howard2010-12-18 23:55:07 +0000
committerSimon Howard2010-12-18 23:55:07 +0000
commit463bcf013ce355398974953508d232ac88a6b2d6 (patch)
tree8f21093469f64e1d147bf22adc4acf6ad84b0310 /src/net_sdl.c
parent1ef81eb5f7c336972fe56f15285f389cafdc96f5 (diff)
downloadchocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.gz
chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.bz2
chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.zip
Add a M_CheckParmWithArgs function, that behaves like M_CheckParm but
also checks that extra options were provided on the command line (thanks Sander van Dijk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2223
Diffstat (limited to 'src/net_sdl.c')
-rw-r--r--src/net_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_sdl.c b/src/net_sdl.c
index 9c647cc9..2589540d 100644
--- a/src/net_sdl.c
+++ b/src/net_sdl.c
@@ -170,7 +170,7 @@ static boolean NET_SDL_InitClient(void)
// the default (2342).
//
- p = M_CheckParm("-port");
+ p = M_CheckParmWithArgs("-port", 1);
if (p > 0)
port = atoi(myargv[p+1]);
@@ -196,7 +196,7 @@ static boolean NET_SDL_InitServer(void)
{
int p;
- p = M_CheckParm("-port");
+ p = M_CheckParmWithArgs("-port", 1);
if (p > 0)
port = atoi(myargv[p+1]);