From 463bcf013ce355398974953508d232ac88a6b2d6 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 18 Dec 2010 23:55:07 +0000 Subject: 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 --- src/net_sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net_sdl.c') 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]); -- cgit v1.2.3