Skip to content

Commit

Permalink
Temporary workaround for RAS bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
irwiss committed Aug 6, 2022
1 parent a6761ba commit d94eea7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,13 @@ void aim_activity_actor::finish( player_activity &act, Character &who )
who.mod_power_level( -bp_cost_per_shot * shots_fired );
}

if( weapon && weapon->gun_current_mode()->has_flag( flag_RELOAD_AND_SHOOT ) ) {
// RAS weapons are currently bugged, this is a workaround so bug impact
// isn't amplified, once #54997 and #50571 are fixed this can be removed.
restore_view();
return;
}

// re-enter aiming UI with same parameters
aim_activity_actor aim_actor;
aim_actor.abort_if_no_targets = true;
Expand Down

0 comments on commit d94eea7

Please sign in to comment.