]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
Fix pure data entities being linked into the area grid, causing performance hit
[xonotic/darkplaces.git] / host_cmd.c
index 9df142ef4d102fc820f228b615e2a33054f57ee2..ab42967319f237f8c740b8f2fc51c70c50a83266 100644 (file)
@@ -953,7 +953,7 @@ static void Host_Loadgame_f(cmd_state_t *cmd)
                        PRVM_ED_ParseEdict (prog, start, ent);
 
                        // link it into the bsp tree
-                       if (!ent->priv.server->free)
+                       if (!ent->priv.server->free && !VectorCompare(PRVM_serveredictvector(ent, absmin), PRVM_serveredictvector(ent, absmax)))
                                SV_LinkEdict(ent);
                }