Try preventing players during snapshotmaps

- Try to force spectator.
- Since that doesn't seem to always work, also simply don't draw `MT_PLAYER` when not using `drawpickups`.
This commit is contained in:
Sally Coolatta 2024-07-26 22:59:49 -04:00
parent 75ab9d6e0a
commit 685a125b02
2 changed files with 16 additions and 1 deletions

View file

@ -8847,6 +8847,7 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
void P_PostLoadLevel(void)
{
TracyCZone(__zone, true);
INT32 i;
P_MapStart();
@ -8882,6 +8883,20 @@ void P_PostLoadLevel(void)
K_UpdateMatchRaceBots();
}
if (roundqueue.snapshotmaps == true)
{
// Force spectator for snapshotmaps command
for (i = 0; i < MAXPLAYERS; i++)
{
if (!playeringame[i])
{
continue;
}
players[i].spectator = true;
}
}
K_TimerInit();
P_InitPlayers();
@ -8905,7 +8920,6 @@ void P_PostLoadLevel(void)
ACS_RunLevelStartScripts();
LUA_HookInt(gamemap, HOOK(MapLoad));
UINT8 i;
for (i = 0; i < MAXPLAYERS; i++)
{
if (!playeringame[i])

View file

@ -3796,6 +3796,7 @@ boolean R_ThingVisible (mobj_t *thing)
case MT_BATTLECAPSULE:
case MT_BATTLECAPSULE_PIECE:
case MT_SPRAYCAN:
case MT_PLAYER:
return false;
default: