Loading

Paste #po9hcsvsy

  1. iff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
  2. --- a/src/industry_gui.cpp
  3. +++ b/src/industry_gui.cpp
  4. @@ -720,7 +720,8 @@ public:
  5.                         y += 2 * FONT_HEIGHT_NORMAL;
  6.                 }
  7.  
  8. -               if (HasBit(ind->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL) || HasBit(ind->callback_mask, CBM_IND_PRODUCTION_256_TICKS)) {
  9. +               if ((ind->behaviour & INDUSTRYBEH_NO_WAITCARGO_TEXT) == 0 &&
  10. +                               (HasBit(ind->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL) || HasBit(ind->callback_mask, CBM_IND_PRODUCTION_256_TICKS))) {
  11.                         GetAllCargoSuffixes(0, CST_VIEW, i, i->type, ind, i->accepts_cargo, cargo_suffix);
  12.                         for (byte j = 0; j < lengthof(i->accepts_cargo); j++) {
  13.                                 if (i->accepts_cargo[j] == CT_INVALID) continue;
  14. diff --git a/src/industrytype.h b/src/industrytype.h
  15. --- a/src/industrytype.h
  16. +++ b/src/industrytype.h
  17. @@ -80,6 +80,7 @@ enum IndustryBehaviour {
  18.         INDUSTRYBEH_PRODCALLBACK_RANDOM   = 1 << 15, ///< Production callback needs random bits in var 10
  19.         INDUSTRYBEH_NOBUILT_MAPCREATION   = 1 << 16, ///< Do not force one instance of this type to appear on map generation
  20.         INDUSTRYBEH_CANCLOSE_LASTINSTANCE = 1 << 17, ///< Allow closing down the last instance of this type
  21. +       INDUSTRYBEH_NO_WAITCARGO_TEXT     = 1 << 18, ///< Suppress display of waiting cargo in newindustries industry window.
  22.  };
  23.  DECLARE_ENUM_AS_BIT_SET(IndustryBehaviour)

Comments