mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix spectators spawning as players in netreplays
This commit is contained in:
parent
cc5bcd1676
commit
08582fa7cc
2 changed files with 3 additions and 2 deletions
|
|
@ -10889,7 +10889,8 @@ void P_SpawnPlayer(INT32 playernum)
|
||||||
}
|
}
|
||||||
|
|
||||||
// spawn as spectator determination
|
// spawn as spectator determination
|
||||||
if (!G_GametypeHasSpectators())
|
if (multiplayer && demoplayback); // Don't mess with spectator values since the demo setup handles them already.
|
||||||
|
else if (!G_GametypeHasSpectators())
|
||||||
p->spectator = false;
|
p->spectator = false;
|
||||||
else if (netgame && p->jointime <= 1 && pcount)
|
else if (netgame && p->jointime <= 1 && pcount)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -612,7 +612,7 @@ void P_Ticker(boolean run)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!multiplayer) {
|
if (!multiplayer) {
|
||||||
G_ReadDemoTiccmd(&players[consoleplayer].cmd, 0);
|
G_ReadDemoTiccmd(&players[consoleplayer].cmd, 0);
|
||||||
} else {
|
} else {
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
if (playeringame[i])
|
if (playeringame[i])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue