From 6ee9c029e4c11e06bd99cc5b82b89a6de1d827b8 Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 12 Nov 2019 18:29:42 -0800 Subject: [PATCH] Warn if the first argument is an option --- src/d_netcmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index c27e920d2..485b53719 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -1901,7 +1901,8 @@ static void Command_Map_f(void) return; } - if (COM_Argc() < acceptableargc) + /* If the first argument is an option, you fucked up. */ + if (COM_Argc() < acceptableargc || first_argument == 1) { /* I'm going over the fucking lines and I DON'T CAREEEEE */ CONS_Printf("map [-gametype ] [-force]:\n");