Use Q_ftol for vm_interpreted

This commit is contained in:
Thilo Schulz 2011-06-16 01:26:17 +00:00
parent 83522282f1
commit 7ac6b087af

View file

@ -884,7 +884,7 @@ nextInstruction2:
((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];