]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 6 Jul 2010 20:40:56 +0000 (22:40 +0200)
From: Rudolf Polzer <divverent@alientrap.org>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10272 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a17b91f730ff2c4e8a2baf069f6eade29d566b2b

prvm_cmds.c

index 96f0b452c0e8ef8bfb0e58fa46aef8a5a94694d3..d7eb9391785c8bf561927f5909ef565828489654 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));
 }