Loading

Revision differences

Old revision #p8gqpmblzNew revision #pryvje7vw
  1switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layer0, [  
  2  STORE_TEMP(CB_FLAG_MORE_SPRITES + base_sprite_2cc + 3 + 16 * company_colour2, 0x100)  
  3]{  
  4  return spritegroup_maglevhopper_wagon_layer;  
  5}  
1  6  
2switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layers, [  7switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layer1, [
3  STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),  8  STORE_TEMP(base_sprite_2cc + 4 + 16 * company_colour2, 0x100)
4  getbits(extra_callback_info1, 8, 8)  9]{
5  ]){  10  return spritegroup_maglevhopper_cargo_layer;
6  0: spritegroup_maglevhopper_wagon_layer;  11}
7  1: spritegroup_maglevhopper_cargo_layer;  12
   13
   14switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layers, getbits(extra_callback_info1, 8, 8)){
   15  0: switch_mglv_hopper_layer0;
   16  1: switch_mglv_hopper_layer1;
8  //return spritegroup_maglevhopper_cargo_layer;  17  //return spritegroup_maglevhopper_cargo_layer;  
9}    
10switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layers_colouring, getbits(extra_callback_info1, 8, 8)){    
11  0: base_sprite_2cc + 3 + 16 * company_colour2;//CC yellow    
12    1: base_sprite_2cc + 4 + 16 * company_colour2;//CC red    
13    3: base_sprite_2cc + 11 + 16 * company_colour2;//CC purple    
14    4: base_sprite_2cc + 6 + 16 * company_colour2;//CC green    
15}  18}  
16  19  
17//ARTICULATION  20//ARTICULATION  
  
68        cost_factor:        40;  71        cost_factor:        40;  
69        //weight:                switch_weight_global;  72        //weight:                switch_weight_global;  
70        weight:                40;  73        weight:                40;  
71        colour_mapping: switch_mglv_hopper_layers_colouring;//RAINBOWWAGONS_enginecheck;    
72        purchase_colour_mapping: CB_FAILED;    
73    }  74    }  
74}  75}  
75if (param_wagons == 0) {  76if (param_wagons == 0) {