~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/industry_gui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: industry_gui.cpp 15726 2009-03-15 16:04:39Z smatz $ */
 
1
/* $Id: industry_gui.cpp 17234 2009-08-20 12:18:46Z rubidium $ */
2
2
 
3
3
/** @file industry_gui.cpp GUIs related to industries. */
4
4
 
643
643
                Industry *i = GetIndustry(this->window_number);
644
644
                int line = this->editbox_line;
645
645
 
646
 
                i->production_rate[line] = ClampU(atoi(str), 0, 255);
 
646
                i->production_rate[line] = ClampU(atoi(str) / 8, 0, 255);
647
647
                UpdateIndustryProduction(i);
648
648
                this->SetDirty();
649
649
        }