diff options
author | truelight <truelight@openttd.org> | 2004-08-22 15:56:56 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-22 15:56:56 +0000 |
commit | 309ebe5f3f998a22e4f128728064227271ea0d98 (patch) | |
tree | 7a2fb0308e3d02fb0bfdd38b7a6d24286a7050ca /industry_cmd.c | |
parent | 86443602642a467ac3219a5da5d08ee0cc99de72 (diff) | |
download | openttd-309ebe5f3f998a22e4f128728064227271ea0d98.tar.xz |
(svn r111) -Fix: converted all linebreaks to UNIX-linebreak (\n)
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index de36565a6..031540510 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1564,7 +1564,7 @@ Industry *CreateNewIndustry(uint tile, int type) return i; } -static const byte _numof_industry_table[4][12] = {
+static const byte _numof_industry_table[4][12] = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5}, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, @@ -1574,8 +1574,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]; -
- if (_opt.diff.number_industries != 0)
+ + if (_opt.diff.number_industries != 0) { assert(num > 0); @@ -1585,7 +1585,7 @@ static void PlaceInitialIndustry(byte type, int amount) if (CreateNewIndustry(TILE_MASK(Random()), type) != NULL) break; } while (--i != 0); - } while (--num);
+ } while (--num); } } |