From 3bac71bc5890094b8eb21eba52ecb4aa9dffc25b Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 4 Jul 2010 19:49:00 +0000 Subject: [PATCH] use a default bindmap of 0 in the PRVM commands, and the arg -1 means "current bindmap". Still need a QC way to get the current bindmap. From: Rudolf Polzer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10272 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=a17b91f730ff2c4e8a2baf069f6eade29d566b2b --- prvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prvm_cmds.c b/prvm_cmds.c index 96f0b452..d7eb9391 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -3923,7 +3923,7 @@ void VM_findkeysforcommand(void) if(prog->argc == 2) bindmap = bound(-1, PRVM_G_FLOAT(OFS_PARM1), MAX_BINDMAPS-1); else - bindmap = -1; + bindmap = 0; // consistent to "bind" VM_CheckEmptyString(cmd); @@ -3964,7 +3964,7 @@ void VM_getkeybind (void) if(prog->argc == 2) bindmap = bound(-1, PRVM_G_FLOAT(OFS_PARM1), MAX_BINDMAPS-1); else - bindmap = -1; + bindmap = 0; // consistent to "bind" PRVM_G_INT(OFS_RETURN) = PRVM_SetTempString(Key_GetBind((int)PRVM_G_FLOAT(OFS_PARM0), bindmap)); } -- 2.39.2