Possibly fix spawn protection bubble not showing
This commit is contained in:
parent
3e17f822e6
commit
6d3e01348e
@ -905,11 +905,6 @@ impl Game {
|
||||
if let Some(map) = &mut self.current_map {
|
||||
if let Some(player) = self.players.iter_mut().find(|p| p.id() == id) {
|
||||
if let Some(mut character) = player.character.clone() {
|
||||
character.dyn_bind_mut().new_buff(Buff {
|
||||
time_remaining: self.opts.get_float(GameOption::SpawnProtection),
|
||||
kind: BuffKind::SpawnProtection,
|
||||
});
|
||||
|
||||
// This is a respawn, delete old character
|
||||
if let Some(mut recorder) = self.replay_recorder.clone()
|
||||
&& let Some(state) = player.get_state(player.clone())
|
||||
@ -930,6 +925,11 @@ impl Game {
|
||||
true,
|
||||
);
|
||||
if let Some(character) = &mut character {
|
||||
character.dyn_bind_mut().new_buff(Buff {
|
||||
time_remaining: self.opts.get_float(GameOption::SpawnProtection),
|
||||
kind: BuffKind::SpawnProtection,
|
||||
});
|
||||
|
||||
if self.current_replay_playback.is_some() {
|
||||
character.set_visible(false);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user