{
entity first_player = NULL;
int totalplayers = 0;
- FOREACH_CLIENT(IS_PLAYER(it), {
+ FOREACH_CLIENT(IS_PLAYER(it) && it.frags != FRAGS_LMS_LOSER, {
if (!totalplayers)
first_player = it;
++totalplayers;
if (!player_rank)
{
int pl_cnt = 0;
- FOREACH_CLIENT(IS_PLAYER(it), { pl_cnt++; });
+ FOREACH_CLIENT(IS_PLAYER(it) && it.frags != FRAGS_LMS_LOSER, {
+ pl_cnt++;
+ });
if (player.lms_spectate_warning < 2)
{
if(IS_BOT_CLIENT(player))
player.frags = FRAGS_LMS_LOSER;
TRANSMUTE(Observer, player);
}
- if (pl_cnt == 2 && !warmup_stage) // a player is forfeiting leaving only one player
- lms_lowest_lives = 0; // end the game now!
}
if (CS(player).killcount != FRAGS_SPECTATOR && player.lms_spectate_warning < 3)
if(tl <= 0)
{
int pl_cnt = 0;
- FOREACH_CLIENT(IS_PLAYER(it), { pl_cnt++; });
+ FOREACH_CLIENT(IS_PLAYER(it) && it.frags != FRAGS_LMS_LOSER, {
+ pl_cnt++;
+ });
if(IS_BOT_CLIENT(frag_target))
bot_clear(frag_target);
frag_target.frags = FRAGS_LMS_LOSER;