821 {"invisible_trees", SDT_BOOL, (void*)false, &_patches.invisible_trees, NULL}, |
821 {"invisible_trees", SDT_BOOL, (void*)false, &_patches.invisible_trees, NULL}, |
822 {"drag_signals_density",SDT_UINT8, (void*)4, &_patches.drag_signals_density, NULL}, |
822 {"drag_signals_density",SDT_UINT8, (void*)4, &_patches.drag_signals_density, NULL}, |
823 |
823 |
824 {"window_snap_radius", SDT_UINT8, (void*)10, &_patches.window_snap_radius, NULL}, |
824 {"window_snap_radius", SDT_UINT8, (void*)10, &_patches.window_snap_radius, NULL}, |
825 |
825 |
826 /* New Path Finding */ |
|
827 {"new_pathfinding_all", SDT_BOOL, (void*)false, &_patches.new_pathfinding_all, NULL}, |
|
828 |
|
829 /* When a red signal is encountered, a small detour can be made around |
|
830 * it. This specifically occurs when a track is doubled, in which case |
|
831 * the detour is typically 2 tiles. It is also often used at station |
|
832 * entrances, when there is a choice of multiple platforms. If we take |
|
833 * a typical 4 platform station, the detour is 4 tiles. To properly |
|
834 * support larger stations we increase this value. |
|
835 * We want to prevent that trains that want to leave at one side of a |
|
836 * station, leave through the other side, turn around, enter the |
|
837 * station on another platform and exit the station on the right side |
|
838 * again, just because the sign at the right side was red. If we take |
|
839 * a typical 5 length station, this detour is 10 or 11 tiles (not |
|
840 * sure), so we set the default penalty at 10 (the station tile |
|
841 * penalty will further prevent this */ |
|
842 {"npf_rail_firstred_penalty", SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH), &_patches.npf_rail_firstred_penalty, NULL}, |
|
843 /* When a train plans a route over a station tile, this penalty is |
|
844 * applied. We want that trains plan a route around a typical, 4x5 |
|
845 * station, which means two tiles to the right, and two tiles back to |
|
846 * the left around it, or 5 tiles of station through it. If we assign |
|
847 * a penalty of 1 tile for every station tile passed, the route will |
|
848 * be around it. |
|
849 */ |
|
850 {"npf_rail_station_penalty", SDT_UINT32, (void*)(1 * NPF_TILE_LENGTH), &_patches.npf_rail_station_penalty, NULL}, |
|
851 {"npf_rail_slope_penalty", SDT_UINT32, (void*)(1 * NPF_TILE_LENGTH), &_patches.npf_rail_slope_penalty, NULL}, |
|
852 |
|
853 {"autorenew", SDT_BOOL, (void*)false, &_patches.autorenew, NULL}, |
826 {"autorenew", SDT_BOOL, (void*)false, &_patches.autorenew, NULL}, |
854 {"autorenew_months", SDT_INT16, (void*)-6, &_patches.autorenew_months, NULL}, |
827 {"autorenew_months", SDT_INT16, (void*)-6, &_patches.autorenew_months, NULL}, |
855 {"autorenew_money", SDT_INT32, (void*)100000,&_patches.autorenew_money, NULL}, |
828 {"autorenew_money", SDT_INT32, (void*)100000,&_patches.autorenew_money, NULL}, |
856 |
829 |
857 {"population_in_label", SDT_BOOL, (void*)true, &_patches.population_in_label, NULL}, |
830 {"population_in_label", SDT_BOOL, (void*)true, &_patches.population_in_label, NULL}, |
937 |
910 |
938 {"ainew_active", SDT_BOOL, (void*)false, &_patches.ainew_active, NULL}, |
911 {"ainew_active", SDT_BOOL, (void*)false, &_patches.ainew_active, NULL}, |
939 |
912 |
940 {"map_x", SDT_UINT32, (void*)8, &_patches.map_x, NULL}, |
913 {"map_x", SDT_UINT32, (void*)8, &_patches.map_x, NULL}, |
941 {"map_y", SDT_UINT32, (void*)8, &_patches.map_y, NULL}, |
914 {"map_y", SDT_UINT32, (void*)8, &_patches.map_y, NULL}, |
|
915 |
|
916 /* New Path Finding */ |
|
917 {"new_pathfinding_all", SDT_BOOL, (void*)false, &_patches.new_pathfinding_all, NULL}, |
|
918 |
|
919 /* When a red signal is encountered, a small detour can be made around |
|
920 * it. This specifically occurs when a track is doubled, in which case |
|
921 * the detour is typically 2 tiles. It is also often used at station |
|
922 * entrances, when there is a choice of multiple platforms. If we take |
|
923 * a typical 4 platform station, the detour is 4 tiles. To properly |
|
924 * support larger stations we increase this value. |
|
925 * We want to prevent that trains that want to leave at one side of a |
|
926 * station, leave through the other side, turn around, enter the |
|
927 * station on another platform and exit the station on the right side |
|
928 * again, just because the sign at the right side was red. If we take |
|
929 * a typical 5 length station, this detour is 10 or 11 tiles (not |
|
930 * sure), so we set the default penalty at 10 (the station tile |
|
931 * penalty will further prevent this */ |
|
932 {"npf_rail_firstred_penalty", SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH), &_patches.npf_rail_firstred_penalty, NULL}, |
|
933 /* When a train plans a route over a station tile, this penalty is |
|
934 * applied. We want that trains plan a route around a typical, 4x5 |
|
935 * station, which means two tiles to the right, and two tiles back to |
|
936 * the left around it, or 5 tiles of station through it. If we assign |
|
937 * a penalty of 1 tile for every station tile passed, the route will |
|
938 * be around it. |
|
939 */ |
|
940 {"npf_rail_station_penalty", SDT_UINT32, (void*)(1 * NPF_TILE_LENGTH), &_patches.npf_rail_station_penalty, NULL}, |
|
941 {"npf_rail_slope_penalty", SDT_UINT32, (void*)(1 * NPF_TILE_LENGTH), &_patches.npf_rail_slope_penalty, NULL}, |
942 |
942 |
943 {NULL, 0, NULL, NULL, NULL} |
943 {NULL, 0, NULL, NULL, NULL} |
944 }; |
944 }; |
945 |
945 |
946 static const SettingDesc currency_settings[] = { |
946 static const SettingDesc currency_settings[] = { |