mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-31 13:40:52 +00:00
SERVER: Don't allow players to spectate during func_ending
This commit is contained in:
parent
73dc723a70
commit
a347cfee3f
1 changed files with 10 additions and 5 deletions
|
@ -424,11 +424,16 @@ void() touch_ending =
|
|||
|
||||
addmoney(other, -self.cost, 0);
|
||||
|
||||
local entity tempe;
|
||||
entity tempe;
|
||||
entity players = find(world, classname, "player");
|
||||
while(players != world) {
|
||||
tempe = self;
|
||||
self = other;
|
||||
self = players;
|
||||
self.downed = true;
|
||||
EndGameSetup();
|
||||
self = tempe;
|
||||
players = find(players, classname, "player");
|
||||
}
|
||||
|
||||
self.activated = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue