Skip to content

Commit

Permalink
do not set brake when exiting AI vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Dec 17, 2022
1 parent ab3919d commit a38ca7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/main/GameContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,10 @@ void GameContext::UpdateCommonInputEvents(float dt)
// enter/exit truck - Without a delay: the vehicle must brake like braking normally
if (App::GetInputEngine()->getEventBoolValue(EV_COMMON_ENTER_OR_EXIT_TRUCK))
{
m_player_actor->ar_brake = 0.66f;
if (m_player_actor->ar_driveable != AI)
{
m_player_actor->ar_brake = 0.66f;
}
}

// toggle physics
Expand Down

0 comments on commit a38ca7f

Please sign in to comment.