--- /home/yonatyt/simu-git/simutrans-master/bauer/wegbauer.cc 2021-08-21 10:37:45.000000000 -0400 +++ /home/yonatyt/simu-git/files/wegbauer.cc 2021-08-27 09:00:14.442243824 -0400 @@ -294,7 +294,7 @@ { // check if scenario forbids this const waytype_t rwtyp = wtyp!=track_wt || styp!=type_tram ? wtyp : tram_wt; - if (!welt->get_scenario()->is_tool_allowed(welt->get_active_player(), TOOL_BUILD_WAY | GENERAL_TOOL, rwtyp)) { + if (!welt->get_scenario()->is_tool_allowed(welt->get_active_player(), TOOL_BUILD_WAY | GENERAL_TOOL, styp == type_elevated ? ignore_wt)) { return; } --- /home/yonatyt/simu-git/simutrans-master/script/api/api_const.cc 2021-08-21 10:37:45.000000000 -0400 +++ /home/yonatyt/simu-git/files/api_const.cc 2021-08-27 09:02:00.984119686 -0400 @@ -139,6 +139,8 @@ begin_enum("way_types"); /// catch all value: used to forbid tools for all waytypes enum_slot(vm, "wt_all", invalid_wt); + /// ingnore waytypes + enum_slot(vm, "wt_ignore", ignore_wt); /// road enum_slot(vm, "wt_road", road_wt); /// rail --- /home/yonatyt/simu-git/simutrans-master/simutrans/script/scenario_base.nut 2021-08-21 10:37:45.000000000 -0400 +++ /home/yonatyt/simu-git/files/scenario_base.nut 2021-08-27 02:07:04.859629303 -0400 @@ -21,7 +21,7 @@ rules <- {} // table containing all waytypes -all_waytypes <- [wt_road, wt_rail, wt_water, wt_monorail, wt_maglev, wt_tram, wt_narrowgauge, wt_air, wt_power] +all_waytypes <- [wt_ignore, wt_road, wt_rail, wt_water, wt_monorail, wt_maglev, wt_tram, wt_narrowgauge, wt_air, wt_power] // placeholder array for all the map editing tools