Don't switch players when a non-active player exits
This commit is contained in:
parent
d77b25c7c1
commit
2673f7f9f8
@ -2617,7 +2617,7 @@ const TILE_TYPES = {
|
||||
on_arrive(me, level, other) {
|
||||
if (other.type.is_real_player) {
|
||||
level.remaining_players -= 1;
|
||||
if (level.remaining_players > 0) {
|
||||
if (other === level.player && level.remaining_players > 0) {
|
||||
level.swap_player1 = true;
|
||||
level.transmute_tile(other, other.type.name === 'player' ? 'player1_exit' : 'player2_exit');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user