Skip to content

Commit

Permalink
Reset driving view offset on death (#35319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramza13 authored and ZhilkinSerg committed Nov 5, 2019
1 parent 4293e2c commit d006367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,9 @@ bool game::cleanup_at_end()
}
}

//Reset any offset due to driving
set_driving_view_offset( point_zero );

//clear all sound channels
sfx::fade_audio_channel( sfx::channel::any, 300 );
sfx::fade_audio_group( sfx::group::weather, 300 );
Expand Down

0 comments on commit d006367

Please sign in to comment.