fix: running with rifle not working after swap away and back

This commit is contained in:
Sara 2025-08-11 18:23:15 +02:00
parent 6c5a24e374
commit a968cccdc2

View file

@ -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_alt_mode, callable_mp(this, &self_type::on_alt_mode));
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() }) {
hud->set_reticle_visibility(true);
}