]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix return value of VM_strftime builtin, it was returning a string
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 May 2008 01:36:14 +0000 (01:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 May 2008 01:36:14 +0000 (01:36 +0000)
offset as a float, it must return it as an int for QC to work

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

prvm_cmds.c

index 71bebfff2666895779301da3a2a4ef894db813c7..3dd182b22cdb5f39eb25076f58dda58ee8e5ff5a 100644 (file)
@@ -703,11 +703,11 @@ void VM_strftime(void)
                tm = gmtime(&t);
        if (!tm)
        {
-               PRVM_G_FLOAT(OFS_RETURN) = 0;
+               PRVM_G_INT(OFS_RETURN) = 0;
                return;
        }
        strftime(result, sizeof(result), fmt, tm);
-       PRVM_G_FLOAT(OFS_RETURN) = PRVM_SetTempString(result);
+       PRVM_G_INT(OFS_RETURN) = PRVM_SetTempString(result);
 }
 
 /*