Skip to content

Commit

Permalink
Merge pull request #76975 from RenechCDDA/reset_z_level_view
Browse files Browse the repository at this point in the history
"Center view" centers to player's current z-level
  • Loading branch information
Anton Burmistrov authored Oct 12, 2024
2 parents bd8b245 + 2cfbb31 commit 6e65f4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handle_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2064,6 +2064,7 @@ static void do_deathcam_action( const action_id &act, avatar &player_character )
case ACTION_CENTER:
player_character.view_offset.x() = g->driving_view_offset.x;
player_character.view_offset.y() = g->driving_view_offset.y;
player_character.view_offset.z() = 0;
break;

case ACTION_SHIFT_N:
Expand Down

0 comments on commit 6e65f4a

Please sign in to comment.