# HG changeset patch # User belugas # Date 1201198564 0 # Node ID 349f1614d125c7c8996b1818066f669e42b8fbdf # Parent 767804e6f878a8a7b841d5bd598dd997fde49a06 (svn r11976) -Fix: It seems that industries using results 0D/0E on callback cb29/35 were a bit too eager to close down. diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2143,9 +2143,13 @@ } } + /* Increase or Decreasing the production level if needed */ if (increment != 0) { - i->prod_level = ClampU(i->prod_level + increment, 4, 0x80); - if (i->prod_level == 4) closeit = true; + if !(increment < 0 && i->prod_level == 4) { + closeit = true; + } else { + i->prod_level = ClampU(i->prod_level + increment, 4, 0x80); + } } /* Close if needed and allowed */