mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-05 19:45:33 +03:00
Do model leafs check only in single player. (#336)
* Do model leafs check only in single player.
This commit is contained in:
parent
f5faf796d9
commit
9d5b94a514
@ -1034,6 +1034,8 @@ void Mod_LoadLeafs(lump_t *l)
|
|||||||
loadmodel->leafs = out;
|
loadmodel->leafs = out;
|
||||||
loadmodel->numleafs = count;
|
loadmodel->numleafs = count;
|
||||||
#ifdef REHLDS_FIXES
|
#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;
|
int row = (loadmodel->numleafs + 7) / 8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user