Remove CSMultiplayerRules' MakeSpectator, as we have our own MakeTempSpectator
as part of the NSPlayer class now.
This commit is contained in:
parent
fc5a66b8d5
commit
85f0dffe09
1 changed files with 4 additions and 10 deletions
|
@ -861,14 +861,7 @@ MakePlayable(entity targ)
|
|||
|
||||
self = oself;
|
||||
}
|
||||
static void
|
||||
MakeSpectator(entity targ)
|
||||
{
|
||||
entity oself = self;
|
||||
self = targ;
|
||||
spawnfunc_spectator();
|
||||
self = oself;
|
||||
}
|
||||
|
||||
void
|
||||
CSMultiplayerRules::PlayerMakePlayable(base_player pp, int chara)
|
||||
{
|
||||
|
@ -912,10 +905,11 @@ Force the player to become an observer.
|
|||
=================
|
||||
*/
|
||||
void
|
||||
CSMultiplayerRules::PlayerMakeSpectator(base_player pl)
|
||||
CSMultiplayerRules::PlayerMakeSpectator(base_player pp)
|
||||
{
|
||||
player pl = (player)pp;
|
||||
pl.MakeTempSpectator();
|
||||
PlayerClearWeaponry(pl);
|
||||
MakeSpectator(pl);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue