Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Decrease if needed */
- if (div > 0) i->prod_level = max(i->prod_level / (2 << (div - 1)), (int)PRODLEVEL_MINIMUM);
- if (i->prod_level == PRODLEVEL_MINIMUM) {
- closeit = true;
- } else {
- recalculate_multipliers = true;
- if (str == STR_NULL) str = indspec->production_down_text;
- }
- while (div-- != 0 && !closeit) {
- if (i->prod_level == PRODLEVEL_MINIMUM) {
- closeit = true;
- } else {
- i->prod_level = max(i->prod_level / 2, (int)PRODLEVEL_MINIMUM); // typecast to int required to please MSVC
- recalculate_multipliers = true;
- if (str == STR_NULL) str = indspec->production_down_text;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement