src/roadveh_cmd.cpp
changeset 10302 8d4bdf14adb4
parent 10230 74440463e61e
child 10321 4a43d5022b7f
equal deleted inserted replaced
10301:76966696a338 10302:8d4bdf14adb4
  1794 	if (HasBit(r, VETS_CANNOT_ENTER)) {
  1794 	if (HasBit(r, VETS_CANNOT_ENTER)) {
  1795 		v->cur_speed = 0;
  1795 		v->cur_speed = 0;
  1796 		return false;
  1796 		return false;
  1797 	}
  1797 	}
  1798 
  1798 
  1799 	if (v->current_order.IsType(OT_LEAVESTATION) && IsDriveThroughStopTile(v->tile)) v->current_order.Free();
  1799 	if (v->current_order.IsType(OT_LEAVESTATION) && IsDriveThroughStopTile(v->tile)) {
       
  1800 		v->current_order.Free();
       
  1801 		ClearSlot(v);
       
  1802 	}
  1800 
  1803 
  1801 	/* Move to next frame unless vehicle arrived at a stop position
  1804 	/* Move to next frame unless vehicle arrived at a stop position
  1802 	 * in a depot or entered a tunnel/bridge */
  1805 	 * in a depot or entered a tunnel/bridge */
  1803 	if (!HasBit(r, VETS_ENTERED_WORMHOLE)) v->u.road.frame++;
  1806 	if (!HasBit(r, VETS_ENTERED_WORMHOLE)) v->u.road.frame++;
  1804 
  1807