]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
reduced client memory usage by 29MB by making cl_max_entities dynamic (starts out...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index b771602ca7b4382748fa54aacd68f54bdb096e32..58b423e172aed05db9862c6a9f58fae6fc7e1eba 100644 (file)
--- a/host.c
+++ b/host.c
@@ -811,7 +811,7 @@ void _Host_Frame (float time)
                time2 = Sys_DoubleTime();
 
        // update audio
-       if (cls.signon == SIGNONS && cl.viewentity >= 0 && cl.viewentity < MAX_EDICTS && cl_entities[cl.viewentity].state_current.active)
+       if (cls.signon == SIGNONS && cl_entities[cl.viewentity].state_current.active)
        {
                // LordHavoc: this used to use renderer variables (eww)
                S_Update(&cl_entities[cl.viewentity].render.matrix);