So, I'm trying to use the cargo_subtype_display
callback to add the word "(optional)" after one of the accepted cargoes for an industry. I have the following code:
Code: Select all
switch (FEAT_INDUSTRIES, SELF, switch_wastelanders_optional_text, extra_callback_info2 & 0x00000001) {
1: string(STR_WASTELANDERS_OPTIONAL);
CB_RESULT_NO_TEXT;
}
Honestly, I'm just taking a complete shot in the dark here, but it 'sort of' works. Unfortunately, while it adds the word to the correct cargo, it also adds it to one of the produced cargoes as well, which isn't what I want:

- img1.png (57.68 KiB) Viewed 2147 times
I'm
pretty sure I'm using extra_callback_info2 wrong, and I really have no idea what to do. Any advice?
Thanks