[quake3-commits] r2032 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jun 15 21:26:17 EDT 2011


Author: thilo
Date: 2011-06-15 21:26:17 -0400 (Wed, 15 Jun 2011)
New Revision: 2032

Modified:
   trunk/code/qcommon/vm_interpreted.c
Log:
Use Q_ftol for vm_interpreted


Modified: trunk/code/qcommon/vm_interpreted.c
===================================================================
--- trunk/code/qcommon/vm_interpreted.c	2011-06-16 01:11:45 UTC (rev 2031)
+++ trunk/code/qcommon/vm_interpreted.c	2011-06-16 01:26:17 UTC (rev 2032)
@@ -884,7 +884,7 @@
 			((float *) opStack)[opStackOfs] = (float) opStack[opStackOfs];
 			goto nextInstruction;
 		case OP_CVFI:
-			opStack[opStackOfs] = (int) ((float *) opStack)[opStackOfs];
+			opStack[opStackOfs] = Q_ftol(((float *) opStack)[opStackOfs]);
 			goto nextInstruction;
 		case OP_SEX8:
 			opStack[opStackOfs] = (signed char) opStack[opStackOfs];



More information about the quake3-commits mailing list