Old revision #p8gqpmblz | New revision #pryvje7vw | ||
---|---|---|---|
1 | switch (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 | ||
2 | switch (FEAT_TRAINS,SELF, switch_mglv_hopper_layers, [ | 7 | switch (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 | |||
14 | switch (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 | |||
10 | |||
11 | |||
12 | |||
13 | |||
14 | |||
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 | |||
72 | |||
73 | } | 74 | } |
74 | } | 75 | } |
75 | if (param_wagons == 0) { | 76 | if (param_wagons == 0) { |