mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Attempt to debounce kill bonus/counter
This commit is contained in:
@@ -1130,8 +1130,18 @@ impl BattleArenaLogic {
|
||||
z: 10.0 * (player_team as f32) + 10.0,
|
||||
}
|
||||
};
|
||||
let connections = generic.users.read().await.values().map(|player_info| player_info.connection.clone()).collect();
|
||||
tokio::task::spawn(super::respawn_player_after(respawn_timestamp, connections, spawn_point, player_id));
|
||||
if let Some(player_desc) = generic.user_descriptor(player_id) {
|
||||
let connections = generic.users.read().await.values().map(|player_info| player_info.connection.clone()).collect();
|
||||
tokio::task::spawn(super::respawn_player_after(
|
||||
respawn_timestamp,
|
||||
connections,
|
||||
spawn_point,
|
||||
player_id,
|
||||
player_desc.machine.is_alive.clone(),
|
||||
));
|
||||
} else {
|
||||
log::error!("Player {} cannot respawn because they are not in the game!?", player_id);
|
||||
}
|
||||
} else {
|
||||
log::error!("Player {} cannot respawn because they are not in a team!?", player_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user