Loading
  1.  
  2. switch(FEAT_TRAINS, SELF, maglevhopper_layer0_01, ([STORE_TEMP(COLOUR_RED, 0x100) , cargo_type_in_veh]))
  3. {
  4.     IORE:    return spritegroup_maglevhopper_wagon_layer;
  5.     default: return spritegroup_maglevhopper_wagon_layer;
  6. }
  7. switch(FEAT_TRAINS, SELF, maglevhopper_layer0_00, ([STORE_TEMP(COLOUR_BLUE, 0x100) , cargo_type_in_veh]))
  8. {
  9.     COAL:    return spritegroup_maglevhopper_wagon_layer;
  10.     default: return maglevhopper_layer0_01;
  11. }
  12.  
  13. switch(FEAT_TRAINS, SELF, maglevhopper_switch, ([getbits(extra_callback_info1, 8, 8)]))
  14. {
  15.     0: maglevhopper_layer0_00; //wagon layer
  16.     return spritegroup_maglevhopper_cargo_layer; //cargo layer
  17. }

Comments