Created
March 25, 2021 21:51
-
-
Save andythenorth/cd4b0b218a8bc46a7ac4a8f9159afb2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_5, [count_veh_id(5520) > 0]) { | |
1: return 1; | |
return 0; | |
} | |
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_4, [count_veh_id(5530) > 0]) { | |
1: return 1; | |
return switch_is_restaurant_car_in_consist_5; | |
} | |
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_3, [count_veh_id(5540) > 0]) { | |
1: return 1; | |
return switch_is_restaurant_car_in_consist_4; | |
} | |
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_2, [count_veh_id(5550) > 0]) { | |
1: return 1; | |
return switch_is_restaurant_car_in_consist_3; | |
} | |
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_1, [count_veh_id(5560) > 0]) { | |
1: return 1; | |
return switch_is_restaurant_car_in_consist_2; | |
} | |
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_0, [count_veh_id(5570) > 0]) { | |
1: return 1; | |
return switch_is_restaurant_car_in_consist_1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment