SERVER: Don't allow players to spectate during func_ending

This commit is contained in:
Steam Deck User 2023-03-09 15:14:38 -05:00
parent 73dc723a70
commit a347cfee3f

View file

@ -424,11 +424,16 @@ void() touch_ending =
addmoney(other, -self.cost, 0);
local entity tempe;
tempe = self;
self = other;
EndGameSetup();
self = tempe;
entity tempe;
entity players = find(world, classname, "player");
while(players != world) {
tempe = self;
self = players;
self.downed = true;
EndGameSetup();
self = tempe;
players = find(players, classname, "player");
}
self.activated = true;
}