]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
default to using texture rectangle shadowmaps when available
[xonotic/darkplaces.git] / cl_main.c
index 108701a79fba11b664e333f051253397feae706d..926c65a947d500b662b1d0d1c542a26b179e1f42 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1231,7 +1231,7 @@ void CL_UpdateViewModel(void)
        ent->state_previous = ent->state_current;
        ent->state_current = defaultstate;
        ent->state_current.time = cl.time;
-       ent->state_current.number = -1;
+       ent->state_current.number = (unsigned short)-1;
        ent->state_current.active = true;
        ent->state_current.modelindex = cl.stats[STAT_WEAPON];
        ent->state_current.frame = cl.stats[STAT_WEAPONFRAME];