fix: resetting rifle aiming state on switch out

This commit is contained in:
Sara 2025-08-11 18:54:07 +02:00
parent 373d5fcf43
commit 458b6f8079

View file

@ -185,6 +185,8 @@ void Rifle::notify_deselected() {
if (HeadsUpDisplay * hud{ HeadsUpDisplay::get_singleton() }) { if (HeadsUpDisplay * hud{ HeadsUpDisplay::get_singleton() }) {
hud->set_reticle_visibility(true); hud->set_reticle_visibility(true);
} }
this->in_alt_mode = false;
this->fov = 0.f;
} }
void Rifle::reload_full() { void Rifle::reload_full() {