Old revision #pqdqvoowf | New revision #pxheywckn | ||
---|---|---|---|
1 | switch (FEAT_ROADVEHS, SELF, switch_e0, | 1 | switch (FEAT_ROADVEHS, SELF, switch_e0, |
2 | | 2 | (position_in_consist > 0 ? 16 : 0) | (getbits(random_bits, 4, 1) * 4) | getbits(extra_callback_info1, 8, 8) |
3 | ) { | 3 | ) { |
4 | 0: spriteset_e0_front_style0_stack0; | 4 | 0: spriteset_e0_front_style0_stack0; |
5 | 1: spriteset_e0_front_style0_stack1; | 5 | 1: spriteset_e0_front_style0_stack1; | … | … |
19 | } | 19 | } |
20 | // 1CC only | 20 | // 1CC only |
21 | switch (FEAT_ROADVEHS, SELF, switch_e0_color1, | 21 | switch (FEAT_ROADVEHS, SELF, switch_e0_color1, |
22 | STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | | 22 | STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | (PALETTE_CC_FIRST + company_colour1), 0x100) |
23 | ) { | 23 | ) { |
24 | default: switch_e0; | 24 | default: switch_e0; |
25 | } | 25 | } |
26 | // 2CC only | 26 | // 2CC only |
27 | switch (FEAT_ROADVEHS, SELF, switch_e0_color2, | 27 | switch (FEAT_ROADVEHS, SELF, switch_e0_color2, |
28 | STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | | 28 | STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | (PALETTE_CC_FIRST + company_colour2), 0x100) |
29 | ) { | 29 | ) { |
30 | default: switch_e0; | 30 | default: switch_e0; |
31 | } | 31 | } |
32 | // grey | 32 | // grey |
33 | switch (FEAT_ROADVEHS, SELF, switch_e0_color2, | 33 | switch (FEAT_ROADVEHS, SELF, switch_e0_color2, |
34 | STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | | 34 | STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | (PALETTE_CC_FIRST + COLOUR_GREY), 0x100) |
35 | ) { | 35 | ) { |
36 | default: switch_e0; | 36 | default: switch_e0; |
37 | } | 37 | } |