From c2885176f3ce50d6480ac793253f766cca538a30 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 14 Sep 2005 04:20:19 +0000 Subject: [PATCH] Added an emergency escape route if you somehow run an alias that loops infinatly. You're still an idiot if you do so, but shift+ctrl+alt at the same time will abort the alias. This may change at some point. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1316 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/cmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index 0d2ba94a3..9c5a11ccf 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -1673,6 +1673,10 @@ void Cmd_ExecuteString (char *text, int level) { int i; int execlevel; + extern qboolean keydown[]; + + if (keydown[K_SHIFT] && keydown[K_CTRL] && keydown[K_ALT]) + return; if ((a->restriction?a->restriction:rcon_level.value) > level) {