settings.c
changeset 1459 19333d7f99b3
parent 1422 525b35328bfe
child 1460 86d703cbdd3a
equal deleted inserted replaced
1458:d4d918bdb74a 1459:19333d7f99b3
   931 	* again, just because the sign at the right side was red. If we take
   931 	* again, just because the sign at the right side was red. If we take
   932 	* a typical 5 length station, this detour is 10 or 11 tiles (not
   932 	* a typical 5 length station, this detour is 10 or 11 tiles (not
   933 	* sure), so we set the default penalty at 10 (the station tile
   933 	* sure), so we set the default penalty at 10 (the station tile
   934 	* penalty will further prevent this */
   934 	* penalty will further prevent this */
   935 	{"npf_rail_firstred_penalty",		SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH),	&_patches.npf_rail_firstred_penalty,		NULL},
   935 	{"npf_rail_firstred_penalty",		SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH),	&_patches.npf_rail_firstred_penalty,		NULL},
       
   936 	/* This penalty is for when the last signal before the target is red.
       
   937 	 * This is useful for train stations, where there are multiple
       
   938 	 * platforms to choose from, which lie in different signal blocks.
       
   939 	 * Every target in a occupied signal block (ie an occupied platform)
       
   940 	 * will get this penalty.
       
   941 	 */
       
   942 	{"npf_rail_lastred_penalty",		SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH),	&_patches.npf_rail_lastred_penalty,		NULL},
   936 	/* When a train plans a route over a station tile, this penalty is
   943 	/* When a train plans a route over a station tile, this penalty is
   937 	* applied. We want that trains plan a route around a typical, 4x5
   944 	* applied. We want that trains plan a route around a typical, 4x5
   938 	* station, which means two tiles to the right, and two tiles back to
   945 	* station, which means two tiles to the right, and two tiles back to
   939 	* the left around it, or 5 tiles of station through it. If we assign
   946 	* the left around it, or 5 tiles of station through it. If we assign
   940 	* a penalty of 1 tile for every station tile passed, the route will
   947 	* a penalty of 1 tile for every station tile passed, the route will