This commit is contained in:
parent
769a580b70
commit
0cf9afa04c
@ -11,14 +11,10 @@ getlastlivingplayer_stub( team )
|
|||||||
foreach ( player in level.players )
|
foreach ( player in level.players )
|
||||||
{
|
{
|
||||||
if ( isdefined( team ) && player.team != team )
|
if ( isdefined( team ) && player.team != team )
|
||||||
{
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
if ( !maps\mp\_utility::isreallyalive( player ) && !player maps\mp\gametypes\_playerlogic::mayspawn() )
|
if ( !maps\mp\_utility::isreallyalive( player ) && !player maps\mp\gametypes\_playerlogic::mayspawn() )
|
||||||
{
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
assertex( !isdefined( live_player ), "getLastLivingPlayer() found more than one live player on team." );
|
assertex( !isdefined( live_player ), "getLastLivingPlayer() found more than one live player on team." );
|
||||||
|
|
||||||
@ -36,9 +32,7 @@ ononeleftevent_stub( team )
|
|||||||
last_player = maps\mp\_utility::getlastlivingplayer( team );
|
last_player = maps\mp\_utility::getlastlivingplayer( team );
|
||||||
|
|
||||||
if ( !isdefined( last_player ) )
|
if ( !isdefined( last_player ) )
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
last_player thread maps\mp\gametypes\common_sd_sr::givelastonteamwarning();
|
last_player thread maps\mp\gametypes\common_sd_sr::givelastonteamwarning();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user