settings.c
changeset 1777 f703cf05b5b9
parent 1751 009a240d035a
child 1891 862800791170
equal deleted inserted replaced
1776:956f8589024d 1777:f703cf05b5b9
   964 	{"npf_rail_slope_penalty",      SDT_UINT32, (void*)(1 * NPF_TILE_LENGTH),   &_patches.npf_rail_slope_penalty,       NULL},
   964 	{"npf_rail_slope_penalty",      SDT_UINT32, (void*)(1 * NPF_TILE_LENGTH),   &_patches.npf_rail_slope_penalty,       NULL},
   965 	/* This penalty is applied when a train makes a turn. Its value of 1 makes
   965 	/* This penalty is applied when a train makes a turn. Its value of 1 makes
   966 	 * sure that it has a minimal impact on the pathfinding, only when two
   966 	 * sure that it has a minimal impact on the pathfinding, only when two
   967 	 * paths have equal length it will make a difference */
   967 	 * paths have equal length it will make a difference */
   968 	{"npf_rail_curve_penalty",      SDT_UINT32, (void*)(1),                     &_patches.npf_rail_curve_penalty,       NULL},
   968 	{"npf_rail_curve_penalty",      SDT_UINT32, (void*)(1),                     &_patches.npf_rail_curve_penalty,       NULL},
       
   969 	/* Ths penalty is applied when a vehicle reverses inside a depot (doesn't
       
   970 	 * apply to ships, as they can just come out the other end). XXX: Is this a
       
   971 	 * good value? */
       
   972 	{"npf_rail_depot_reverse_penalty", SDT_UINT32, (void*)(NPF_TILE_LENGTH * 50), &_patches.npf_rail_depot_reverse_penalty, NULL},
   969 	{"npf_buoy_penalty",            SDT_UINT32, (void*)(2 * NPF_TILE_LENGTH),   &_patches.npf_buoy_penalty,             NULL},
   973 	{"npf_buoy_penalty",            SDT_UINT32, (void*)(2 * NPF_TILE_LENGTH),   &_patches.npf_buoy_penalty,             NULL},
   970 	/* This penalty is applied when a ship makes a turn. It is bigger than the
   974 	/* This penalty is applied when a ship makes a turn. It is bigger than the
   971 	 * rail curve penalty, since ships (realisticly) have more trouble with
   975 	 * rail curve penalty, since ships (realisticly) have more trouble with
   972 	 * making turns */
   976 	 * making turns */
   973 	{"npf_water_curve_penalty",     SDT_UINT32, (void*)(NPF_TILE_LENGTH / 4),   &_patches.npf_water_curve_penalty,      NULL},
   977 	{"npf_water_curve_penalty",     SDT_UINT32, (void*)(NPF_TILE_LENGTH / 4),   &_patches.npf_water_curve_penalty,      NULL},