SHARE
TWEET

Untitled

a guest Aug 19th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /* Decrease if needed */
  2.     if (div > 0) i->prod_level = max(i->prod_level / (2 << (div - 1)), (int)PRODLEVEL_MINIMUM);
  3.     if (i->prod_level == PRODLEVEL_MINIMUM) {
  4.         closeit = true;
  5.     } else {
  6.         recalculate_multipliers = true;
  7.         if (str == STR_NULL) str = indspec->production_down_text;
  8.     }
  9.  
  10.     while (div-- != 0 && !closeit) {
  11.         if (i->prod_level == PRODLEVEL_MINIMUM) {
  12.             closeit = true;
  13.         } else {
  14.             i->prod_level = max(i->prod_level / 2, (int)PRODLEVEL_MINIMUM); // typecast to int required to please MSVC
  15.             recalculate_multipliers = true;
  16.             if (str == STR_NULL) str = indspec->production_down_text;
  17.         }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top