From 9d5b94a5146b8be1e913954efef1ecb2a176400e Mon Sep 17 00:00:00 2001 From: Lev Date: Sat, 4 Feb 2017 23:11:21 +0500 Subject: [PATCH] Do model leafs check only in single player. (#336) * Do model leafs check only in single player. --- rehlds/engine/model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rehlds/engine/model.cpp b/rehlds/engine/model.cpp index d8796b5..0147469 100644 --- a/rehlds/engine/model.cpp +++ b/rehlds/engine/model.cpp @@ -1034,6 +1034,8 @@ void Mod_LoadLeafs(lump_t *l) loadmodel->leafs = out; loadmodel->numleafs = count; #ifdef REHLDS_FIXES + // Originally check was called only in singleplayer mode, that is why this "if" here (see Mod_LeafPVS, gPVS is not NULL for multiplayer) + if (g_psvs.maxclients <= 1) { int row = (loadmodel->numleafs + 7) / 8;