summaryrefslogtreecommitdiff
path: root/src/renderer/tr_light.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_light.c')
-rw-r--r--src/renderer/tr_light.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer/tr_light.c b/src/renderer/tr_light.c
index 05aca8b8..78441bb7 100644
--- a/src/renderer/tr_light.c
+++ b/src/renderer/tr_light.c
@@ -360,9 +360,9 @@ void R_SetupEntityLighting( const trRefdef_t *refdef, trRefEntity_t *ent ) {
}
// save out the byte packet version
- ((byte *)&ent->ambientLightInt)[0] = Q_ftol(ent->ambientLight[0]);
- ((byte *)&ent->ambientLightInt)[1] = Q_ftol(ent->ambientLight[1]);
- ((byte *)&ent->ambientLightInt)[2] = Q_ftol(ent->ambientLight[2]);
+ ((byte *)&ent->ambientLightInt)[0] = ri.ftol(ent->ambientLight[0]);
+ ((byte *)&ent->ambientLightInt)[1] = ri.ftol(ent->ambientLight[1]);
+ ((byte *)&ent->ambientLightInt)[2] = ri.ftol(ent->ambientLight[2]);
((byte *)&ent->ambientLightInt)[3] = 0xff;
// transform the direction to local space