]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
VM_stringtokeynum: return a float, not an int
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Jul 2010 03:51:50 +0000 (03:51 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Jul 2010 03:51:50 +0000 (03:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10349 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index 9713b10e44f06d0cbfe9f27c655e8420e440f139..11221becdbf94b01f8501a31d7d263f5cc1ed99b 100644 (file)
@@ -3947,7 +3947,7 @@ void VM_stringtokeynum (void)
 {
        VM_SAFEPARMCOUNT( 1, VM_keynumtostring );
 
-       PRVM_G_INT(OFS_RETURN) = Key_StringToKeynum(PRVM_G_STRING(OFS_PARM0));
+       PRVM_G_FLOAT(OFS_RETURN) = Key_StringToKeynum(PRVM_G_STRING(OFS_PARM0));
 }
 
 /*