Loading

Revision differences

Old revision #pqdqvoowfNew revision #pxheywckn
1switch (FEAT_ROADVEHS, SELF, switch_e0,  1switch (FEAT_ROADVEHS, SELF, switch_e0,  
2  position_in_consist > 0 ? 16 : 0) + getbits(random_bits, 4, 1) * 4 + getbits(extra_callback_info1, 8, 8)  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  
21switch (FEAT_ROADVEHS, SELF, switch_e0_color1,  21switch (FEAT_ROADVEHS, SELF, switch_e0_color1,  
22  STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | PALETTE_CC_FIRST + company_colour1, 0x100)  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  
27switch (FEAT_ROADVEHS, SELF, switch_e0_color2,  27switch (FEAT_ROADVEHS, SELF, switch_e0_color2,  
28  STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | PALETTE_CC_FIRST + company_colour2, 0x100)  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  
33switch (FEAT_ROADVEHS, SELF, switch_e0_color2,  33switch (FEAT_ROADVEHS, SELF, switch_e0_color2,  
34  STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | PALETTE_CC_FIRST + COLOUR_GREY, 0x100)  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}