]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 21 Jul 2010 04:57:16 +0000 (06:57 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10349 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=10102d3de2fcf3343b93f4710f60003ea0fc9973

prvm_cmds.c

index df50bdc51a23c8451fd063c57250bdaa874e17cd..b67b940bf9f8ea106f9cab994aa09ff0c5c09600 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));
 }
 
 /*