From: divverent Date: Sun, 4 Jul 2010 19:49:00 +0000 (+0000) Subject: use a default bindmap of 0 in the PRVM commands, and the arg -1 means "current bindma... X-Git-Tag: xonotic-v0.1.0preview~230^2~206 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a17b91f730ff2c4e8a2baf069f6eade29d566b2b;p=xonotic%2Fdarkplaces.git 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 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index 0781f0e2..666dd52e 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)); }