fix: running with rifle not working after swap away and back
This commit is contained in:
parent
6c5a24e374
commit
a968cccdc2
|
@ -181,7 +181,7 @@ void Rifle::notify_deselected() {
|
||||||
get_input()->disconnect(PlayerInput::sig_primary_fire, callable_mp(this, &self_type::on_primary_fire));
|
get_input()->disconnect(PlayerInput::sig_primary_fire, callable_mp(this, &self_type::on_primary_fire));
|
||||||
get_input()->disconnect(PlayerInput::sig_alt_mode, callable_mp(this, &self_type::on_alt_mode));
|
get_input()->disconnect(PlayerInput::sig_alt_mode, callable_mp(this, &self_type::on_alt_mode));
|
||||||
get_input()->disconnect(PlayerInput::sig_reload, callable_mp(this, &self_type::on_reload));
|
get_input()->disconnect(PlayerInput::sig_reload, callable_mp(this, &self_type::on_reload));
|
||||||
get_camera()->set_fov_factor(1.0);
|
this->running = false;
|
||||||
if (HeadsUpDisplay * hud{ HeadsUpDisplay::get_singleton() }) {
|
if (HeadsUpDisplay * hud{ HeadsUpDisplay::get_singleton() }) {
|
||||||
hud->set_reticle_visibility(true);
|
hud->set_reticle_visibility(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue