diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b5dfbc9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# Top-most EditorConfig file +root = true + +# Set the default charset +[*] +charset = utf-8 +indent_style = space +indent_size = 4 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + diff --git a/src/functions.pnml b/src/functions.pnml index 2bd4d2a..2f0e637 100644 --- a/src/functions.pnml +++ b/src/functions.pnml @@ -224,28 +224,28 @@ switch (FEAT_TRAINS, SELF, muhead_mtr, vehicle_type_id) { switch (FEAT_TRAINS, SELF, mu_of_mtr, vehicle_type_id) { 1856..2751: return can_attach_in_mtr; - return cannot_attach_in_mtr; + return CB_RESULT_ATTACH_DISALLOW; } switch (FEAT_TRAINS, SELF, muhead_with_first_class, vehicle_type_id) { 1856..1857: return can_attach_in_mtr; - return cannot_attach_in_mtr; + return CB_RESULT_ATTACH_DISALLOW; } switch (FEAT_TRAINS, SELF, muhead_yellowhead_exurb, vehicle_type_id) { 1856..1858: return can_attach_in_mtr; - return cannot_attach_in_mtr; + return CB_RESULT_ATTACH_DISALLOW; } switch (FEAT_TRAINS, SELF, muhead_airport_express, vehicle_type_id) { 1857: return can_attach_in_mtr; 1859: return can_attach_in_mtr; - return cannot_attach_in_mtr; + return CB_RESULT_ATTACH_DISALLOW; } switch (FEAT_TRAINS, SELF, muhead_without_first_class, vehicle_type_id) { 1856: return can_attach_in_mtr; - return cannot_attach_in_mtr; + return CB_RESULT_ATTACH_DISALLOW; }