switch (FEAT_TRAINS, SELF, overlay, STORE_TEMP(PALETTE_USE_DEFAULT, 0x100)) {
return sprite_attach_overlay_8_rail_freight_engine;
}
switch (FEAT_TRAINS, SELF, base, STORE_TEMP(CB_FLAG_MORE_SPRITES | PALETTE_USE_DEFAULT, 0x100)) {
return switch_rail_freight_graphics_which_end;
}
switch (FEAT_TRAINS, SELF, switch_rail_freight_graphics_decider, getbits(extra_callback_info1, 8, 8)) {
0: return overlay;
return base;
}