front-end: Minor fix related to reset button
This commit is contained in:
parent
96e28b9d68
commit
e060d94186
1 changed files with 1 additions and 1 deletions
|
@ -1228,7 +1228,7 @@ impl Component for Wrapper {
|
||||||
ctx.link().send_message(WrapperMsg::BackendTick);
|
ctx.link().send_message(WrapperMsg::BackendTick);
|
||||||
}
|
}
|
||||||
WrapperMsg::BackendTick => {
|
WrapperMsg::BackendTick => {
|
||||||
if !self.do_backend_tick || shared.game_state.get() == GameState::default() {
|
if !self.do_backend_tick || !shared.game_state.get().is_networked_multiplayer() {
|
||||||
// disconnect id if backend tick is to be stopped
|
// disconnect id if backend tick is to be stopped
|
||||||
if let Some(id) = self.player_id.take() {
|
if let Some(id) = self.player_id.take() {
|
||||||
let function = Function::new_no_args(&format!(
|
let function = Function::new_no_args(&format!(
|
||||||
|
|
Loading…
Reference in a new issue