function f = turn_termination(world_state, id, desired_state, P)
% a turn terminates after we have switched to another road

f = 0;
if ~isfield(world_state, 'car_controls')
  return
end

state = world_state.car_states(id);
past_action = world_state.car_controls(id).action;

if past_action.id == P.kTurn.Left || past_action.id == P.kTurn.Right  
  if state.turned_to_road_id
    f = 1;
    return
  end
end
