2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Do model leafs check only in single player. (#336)

* Do model leafs check only in single player.
This commit is contained in:
Lev 2017-02-04 23:11:21 +05:00 committed by GitHub
parent f5faf796d9
commit 9d5b94a514

View File

@ -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;