Loading

Paste #pystey9tu

  1. switch(FEAT_TRAINS, SELF, VEH_ID(height_switch), ((var[0x62, 24, 0x000000FF, -1 - (SLICE)] - var[0x62, 24, 0x000000FF, -0 - (SLICE)]) & 0xFF) << 8 | ((var[0x62, 24, 0x000000FF, -0 - (SLICE)] - var[0x62, 24, 0x000000FF, 1 - (SLICE)]) & 0xFF)) {
  2.     0 : VEH_ID(slice_group);
  3. #if SLICE == 0
  4.     VEH_ID(group);
  5. #else
  6.     inv_dummy_group;
  7. #endif
  8. }
  9.  
  10. switch(FEAT_TRAINS, SELF, VEH_ID(direction_switch), ((var[0x62, 0, 0x0000000F, -1 - (SLICE)] - var[0x62, 0, 0x0000000F, -0 - (SLICE)]) & 0xF) << 8 | ((var[0x62, 0, 0x0000000F, -0 - (SLICE)] - var[0x62, 0, 0x0000000F, 1 - (SLICE)]) & 0xF)) {
  11. #if SLICE == 0
  12.     0x00000000: VEH_ID(height_switch);
  13.     0x00000001: VEH_ID(1_group);
  14.     0x00000F00: VEH_ID(2_group);
  15.     0x0000000F: VEH_ID(3_group);
  16.     0x00000100: VEH_ID(4_group);
  17.     VEH_ID(group);
  18. #else
  19.     0x00000000: VEH_ID(height_switch);
  20.     inv_dummy_group;
  21. #endif
  22. }
  23.  
  24. switch(FEAT_TRAINS, SELF, VEH_ID(gfx_switch), extra_callback_info1 & 0xFF) {
  25.     0 : VEH_ID(direction_switch);
  26.     VEH_ID(gui_group);
  27. }

Comments