forked from mirror/OpenTTD
(svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D()
These scale a number relative to the map size/circumference. Use them to scale the amount of map objects. Of course at the moment they return just the input, because there are no bigger/smaller maps yet.
This commit is contained in:
@@ -1594,7 +1594,8 @@ static const byte _numof_industry_table[4][12] = {
|
||||
|
||||
static void PlaceInitialIndustry(byte type, int amount)
|
||||
{
|
||||
int num = _numof_industry_table[_opt.diff.number_industries][amount];
|
||||
int num =
|
||||
ScaleByMapSize(_numof_industry_table[_opt.diff.number_industries][amount]);
|
||||
|
||||
if (_opt.diff.number_industries != 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user