Skip to content

Commit

Permalink
Fix aiming not reversing view offset properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolthulhu committed Feb 28, 2016
1 parent 9cc9535 commit cb34c3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,7 @@ std::vector<tripoint> game::target( tripoint &p, const tripoint &low, const trip
u.assign_activity( ACT_AIM, 0, 0 );
u.activity.str_values.push_back( "AIM" );
ret.clear();
u.view_offset = old_offset;
return ret;
}
} else if( action == "SWITCH_AIM" ) {
Expand Down Expand Up @@ -1189,6 +1190,7 @@ std::vector<tripoint> game::target( tripoint &p, const tripoint &low, const trip
u.assign_activity( ACT_AIM, 0, 0 );
u.activity.str_values.push_back( action );
ret.clear();
u.view_offset = old_offset;
return ret;
}
} else if( action == "FIRE" ) {
Expand Down

0 comments on commit cb34c3a

Please sign in to comment.