SERVER: Fix solo games entering Spectator at game end

This commit is contained in:
MotoLegacy 2024-12-08 22:02:19 -08:00
parent 5c7d123ec1
commit 0b820ff6be
2 changed files with 2 additions and 5 deletions

View file

@ -70,8 +70,6 @@ void() EndGame =
local entity who;
self.health = 0;
self.origin = '0 0 0';
setorigin (self, self.origin);
self.velocity = '0 0 0';
oldself = self;
@ -114,7 +112,8 @@ void() startspectate =
self.downed = 0;
self.frame = 0;
SpectatorSpawn();
if (player_count > 1)
SpectatorSpawn();
}
// searches for players that are alive given which clients have which playernumbers
@ -146,7 +145,6 @@ void() EndGameSetup =
self.weapon2model = "";
self.animend = SUB_Null;
self.perks = 0;
self.is_spectator = true;
self.movetype = MOVETYPE_TOSS;
if (!game_over) {

View file

@ -368,7 +368,6 @@ void() Soft_Restart = {
self.pri_grenade_state = 0;
InitRounds();
self.is_spectator = true;
PutClientInServer();
nzp_screenflash(world, SCREENFLASH_COLOR_BLACK, 1, SCREENFLASH_FADE_OUT);