]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)
[xonotic/darkplaces.git] / sv_main.c
index f90512d5c6490f9fcac7c2de17251575836782d2..39d3f9d5b452619bc51618d50a9969e308e0b048 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -469,10 +469,10 @@ void SV_PrepareEntitiesForSending(void)
                VectorCopy(ent->v->origin, cs.origin);
                VectorCopy(ent->v->angles, cs.angles);
                cs.flags = 0;
-               cs.effects = (int)ent->v->effects;
-               cs.colormap = (qbyte)ent->v->colormap;
-               cs.skin = (qbyte)ent->v->skin;
-               cs.frame = (qbyte)ent->v->frame;
+               cs.effects = (unsigned)ent->v->effects;
+               cs.colormap = (unsigned)ent->v->colormap;
+               cs.skin = (unsigned)ent->v->skin;
+               cs.frame = (unsigned)ent->v->frame;
                cs.viewmodelforclient = GETEDICTFIELDVALUE(ent, eval_viewmodelforclient)->edict;
                cs.exteriormodelforclient = GETEDICTFIELDVALUE(ent, eval_exteriormodeltoclient)->edict;
                cs.nodrawtoclient = GETEDICTFIELDVALUE(ent, eval_nodrawtoclient)->edict;