]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed getinputstate not returning success/failure
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 02:07:18 +0000 (02:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 02:07:18 +0000 (02:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8903 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index 3cd92468ef0b2a79b1bef41f6d64d2d2403430cb..1bd88363879ae731379cd9f84dcf790ffbec7168 100644 (file)
@@ -1159,6 +1159,7 @@ static void VM_CL_getinputstate (void)
        int i, frame;
        VM_SAFEPARMCOUNT(1, VM_CL_getinputstate);
        frame = (int)PRVM_G_FLOAT(OFS_PARM0);
+       PRVM_G_FLOAT(OFS_RETURN) = false;
        for (i = 0;i < CL_MAX_USERCMDS;i++)
        {
                if (cl.movecmd[i].sequence == frame)
@@ -1179,6 +1180,7 @@ static void VM_CL_getinputstate (void)
                                VectorCopy(cl.playerstandmins, prog->globals.client->pmove_mins);
                                VectorCopy(cl.playerstandmaxs, prog->globals.client->pmove_maxs);
                        }
+                       PRVM_G_FLOAT(OFS_RETURN) = true;
                }
        }
 }