Skip to content

Commit

Permalink
Update src/ranged.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade authored Feb 23, 2020
1 parent b8a48d3 commit 8b21391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ static double calculate_aim_cap( const player &p, const tripoint &target )
{
double min_recoil = 0.0;
const Creature *victim = g->critter_at( target, true );
if( victim == nullptr || !p.sees( *victim ) {
if( victim == nullptr || !p.sees( *victim ) ) {
const int range = rl_dist( p.pos(), target );
// Get angle of triangle that spans the target square.
const double angle = atan2( 1, range );
Expand Down

0 comments on commit 8b21391

Please sign in to comment.