Loading

bitstuff

  1. // Only store extra_callback_info1 if bit 0x80000000 is set.
  2. // When OpenTTD random production occurs extra_callback_info1 is 0
  3. switch (FEAT_INDUSTRIES, SELF, switch_prod_change, [
  4.   ((extra_callback_info1 & 0x80000000) != 0) && STORE_PERM(extra_callback_info1 - 0x80000000, 0),
  5.   extra_callback_info1
  6. ]) {
  7.   return CB_RESULT_IND_PROD_NO_CHANGE;
  8. }

Comments