Don't accept KEY_PAUSE for control console command

This commit is contained in:
mazmazz 2018-11-21 11:21:17 -05:00
parent f926774ee1
commit 7075cdbfa8

View file

@ -1327,6 +1327,8 @@ static void setcontrol(INT32 (*gc)[2], INT32 na)
return; return;
} }
keynum = G_KeyStringtoNum(COM_Argv(2)); keynum = G_KeyStringtoNum(COM_Argv(2));
if (keynum == KEY_PAUSE) // fail silently; pause is hardcoded
return;
G_CheckDoubleUsage(keynum); G_CheckDoubleUsage(keynum);
gc[numctrl][0] = keynum; gc[numctrl][0] = keynum;