summaryrefslogtreecommitdiff
path: root/src/renderer/tr_shade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_shade.c')
-rw-r--r--src/renderer/tr_shade.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderer/tr_shade.c b/src/renderer/tr_shade.c
index b40a06c5..f12519b4 100644
--- a/src/renderer/tr_shade.c
+++ b/src/renderer/tr_shade.c
@@ -234,7 +234,7 @@ static void R_BindAnimatedImage( textureBundle_t *bundle ) {
// it is necessary to do this messy calc to make sure animations line up
// exactly with waveforms of the same frequency
- index = myftol( tess.shaderTime * bundle->imageAnimationSpeed * FUNCTABLE_SIZE );
+ index = Q_ftol(tess.shaderTime * bundle->imageAnimationSpeed * FUNCTABLE_SIZE);
index >>= FUNCTABLE_SIZE2;
if ( index < 0 ) {
@@ -690,9 +690,9 @@ static void ProjectDlightTexture_scalar( void ) {
}
}
clipBits[i] = clip;
- colors[0] = myftol(floatColor[0] * modulate);
- colors[1] = myftol(floatColor[1] * modulate);
- colors[2] = myftol(floatColor[2] * modulate);
+ colors[0] = Q_ftol(floatColor[0] * modulate);
+ colors[1] = Q_ftol(floatColor[1] * modulate);
+ colors[2] = Q_ftol(floatColor[2] * modulate);
colors[3] = 255;
}