]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use a default bindmap of 0 in the PRVM commands, and the arg -1 means "current bindma...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Jul 2010 19:49:00 +0000 (19:49 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Jul 2010 19:49:00 +0000 (19:49 +0000)
From: Rudolf Polzer <divverent@alientrap.org>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10272 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index 0781f0e21ad0bae70b605dfc9222485c07746906..666dd52e636452606e0309f16adc287a93cda698 100644 (file)
@@ -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));
 }