rubidium
fe8e297995
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
17 years ago
belugas
b9b59ec169
(svn r10641) -Fix(r10638): Forgotten Son... err...include
17 years ago
belugas
fabd64e1e6
(svn r10640) -Fix(r10638): little typo...
17 years ago
belugas
f9d3463af1
(svn r10639) -Codechange: Give meaninfull name to a magic number
17 years ago
belugas
d847b30c98
(svn r10638) -Codechange: Save the mapping of the industries and tiles, making them persistent.
17 years ago
belugas
c0b044ac45
(svn r10635) -Codechange: Correct some typos and code beautifying (a little bit)
17 years ago
rubidium
efc7fdf2fd
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
17 years ago
glx
6474a5a957
(svn r10575) -Fix r10573: misplaced )
17 years ago
belugas
89d872a625
(svn r10573) -Codechange: Use function CheckIfCallBackAllowsAvailability for random map generation as well as for ingame random industry creation
17 years ago
rubidium
79d04412b0
(svn r10508) -Codechange: allow customizable animation schemes for industries.
17 years ago
rubidium
e497167dfd
(svn r10506) -Fix: the (manual) building of banks was always rejected.
17 years ago
rubidium
09eb6623ab
(svn r10494) -Fix (r10490): possible null dereference in some exotic newgrfs.
17 years ago
rubidium
25511e0e26
(svn r10490) -Codechange: add support for industries on non-flat surfaces.
17 years ago
rubidium
bb8923c336
(svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location.
17 years ago
rubidium
70d6fdeca0
(svn r10483) -Codechange: add support for callbacks to manipulate the building chance of farm fields and chopping chance for lumber mills.
17 years ago
maedhros
165dd778af
(svn r10481) -Codechange: Show a news message with the new industry when primary industry prospecting succeeds.
17 years ago
rubidium
283a06e4a1
(svn r10477) -Codechange: add some callbacks to customise the acceptance of industries.
17 years ago
rubidium
9a55c79fd1
(svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries.
17 years ago
rubidium
c86015203a
(svn r10459) -Codechange: add helper functions to determine whether an industry is a primary industry and how much it costs to build such an industry.
17 years ago
rubidium
0d68a919d9
(svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an amount of money and then it might (with a given chance) build a raw industry somewhere on the map.
17 years ago
rubidium
86c14c239f
(svn r10442) -Codechange: implement the industry production callback.
17 years ago
rubidium
1bdb72ebd4
(svn r10439) -Codechange: initial steps for customized industry productions.
17 years ago
belugas
de43302419
(svn r10425) -Fix (r10418): do not compare bitmasks with HASBIT. Strike two. Forgotten code :)
17 years ago
rubidium
bad85b08c2
(svn r10419) -Fix (r10418): do not compare bitmasks with HASBIT. Thanks to Maedhros for spotting this.
18 years ago
rubidium
b67cfd4825
(svn r10418) -Codechange: implement/resurrect the industry production flags.
18 years ago
rubidium
d73e490c52
(svn r10406) -Fix [FS#968]: only industries in the temperate climate should be affected by the "do not increase production" flag.
18 years ago
rubidium
735c47d7d7
(svn r10348) -Fix (r10347): compile errors; do not think it compiles fine when you run make on the wrong working copy.
18 years ago
rubidium
667e8eaaf8
(svn r10347) -Fix [FS#948]: industries with a very low production could never recover when using smooth economy.
...
-Fix: in smooth economy producing industries could not close, whereas they could close in non-smooth economy.
-Fix: in smooth economy the "do not increase production" flag of industries was ignored.
18 years ago
truelight
90fa779a24
(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy
18 years ago
rubidium
e12e83ef5f
(svn r10299) -Codechange [FS#931]: industry foundations should be drawn as all other foundations, i.e. with DrawFoundation, instead of writing the same functionality itself.
18 years ago
truelight
27a6e21975
(svn r10290) -Fix: with smooth_economy, when industry production hit 32, it stayed there for ever. Give it some chance to get out of that uber-lowness (although it is a very slim chance, at least it has one)
18 years ago
belugas
436eb69a39
(svn r10232) -Fix(r1): _numof_industry_table never was composed of 12 entries. Only 11.
...
It never hurt before, but it would have...
18 years ago
belugas
2ad0d708cc
(svn r10226) -Codechange: Add support for newindustry tiles drawing.
...
Heavily based on Maedhros's newhouses implementation
18 years ago
rubidium
49220cc6f1
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
18 years ago
rubidium
966e2738b9
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
18 years ago
belugas
402cf772f0
(svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way.
18 years ago
rubidium
91420c0d8d
(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
18 years ago
belugas
81c7c87ed7
(svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
...
Spotted by Oxygene
18 years ago
belugas
08c9365971
(svn r10078) -Codechange: Centralize all industry counts data and access
18 years ago
belugas
7586143e3b
(svn r10063) -Codechange: Change VARDEF for extern
...
-CodeChange: Add the count of industries, basic support for variable 67, var action02 forindustries
18 years ago
rubidium
8a74b2ebe1
(svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month).
18 years ago
rubidium
40cea6c3ef
(svn r10054) -Codechange: make the industries cost modifier look more like the original one, so it's much easier to support industries that use this original format.
18 years ago
rubidium
8d82deffa1
(svn r9993) -Fix (r9992): smallish typos resulting in compile time errors.
18 years ago
belugas
0f6e6d9713
(svn r9992) -Codechange: Remove some hardcoded references to Industry IDs.
...
A few more to go
18 years ago
belugas
425ea50854
(svn r9984) -Codechange: Remove an obsolete structure and a now meaningless enum, in favor of the "real thing"
18 years ago
belugas
f8491407d0
(svn r9983) -Codechange: Use the "enabled" property of the industry spec.
18 years ago
belugas
0cb8413a8f
(svn r9976) -Codechange: Declare a writable array of specs for industry and industry tiles.
...
It will be initialized by the original data upon game start.
Rename some enums to be more consistent too
18 years ago
belugas
35ccad33dd
(svn r9969) -Codechange: Cleanup of industries (Step-14). Remove hardcoded-run-time tile acceptance and put in corresponding tile
18 years ago
rubidium
440d723d84
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
18 years ago
peter1138
44fc08391d
(svn r9887) -Fix (r9867): Industry production statistics messed up...
18 years ago
belugas
88042df6bb
(svn r9886) -Codechange: Cleanup of industries (Step-13). Include the sounds table into the industry's spec.
18 years ago
belugas
49570edfe9
(svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct
18 years ago
belugas
380d18fb69
(svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead.
18 years ago
belugas
9b7a615887
(svn r9762) -Feature: Two new difficulty settings : Very low number of towns and very low number of industries
...
Based on FS#289, by pitt2
18 years ago
belugas
3a1e7679d8
(svn r9705) -Codechange: Merge some data arrays together, making a bit more logical units.
...
Calculate with a macro (for _industry_anim_offs_toys) the value of x, instead of doing it at run time.
And give some more descriptive names too...
18 years ago
belugas
95ae29b470
(svn r9676) -Codechange: introduce NUM_INDUSTRYTYPES instead of IT_END.
...
This makes the code clearer.
18 years ago
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
belugas
cc647a08a0
(svn r9644) -Codechange: if else cascade into a switch case
18 years ago
belugas
61c99f99a2
(svn r9643) -Codechange: Simplify a test.
18 years ago
belugas
ec03c72afb
(svn r9579) -Codechange: Cleanup of industry_cmd (Step-11). Use industry's spec appear_creation during random map creation.
18 years ago
belugas
12addc1bbe
(svn r9574) -Fix(r9520, FS#721): Oil Rig ( or industry with behaviour INDUSTRYBEH_BUILT_ONWATER) should check all tiles before leaving the test. A tile in water does not ensure that all required tiles will necessary be on water.
18 years ago
belugas
1c97841ff6
(svn r9569) -Fix(r9567): testing mode leftover...
18 years ago
belugas
15d360c7f6
(svn r9567) -Fix(9555, FS#718): The industry ID been collected was just an index in a out of phase array. Now, ensure that the ID will really be an IndustryType
18 years ago
peter1138
a2cec54c9d
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
18 years ago
belugas
f12d1a3f0a
(svn r9555) -Codechange: Cleanup of industry_cmd (Step-9). Use in-game appearing chances for industry creation.
18 years ago
belugas
72fc068844
(svn r9520) -Codechange: Add the notion of Industry behaviour. It means what an industry can do (plant fields, cut trees, do not change production), what can be done to it (disasters like mine subsidence, jet/chopper attack), when it can be built etc...
18 years ago
belugas
06d3669bb5
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
18 years ago
maedhros
48f2bf9bb1
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
...
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
18 years ago
belugas
eb1e6c19ad
(svn r9190) -Fix: Little typo in an enum.
18 years ago
belugas
65ce0e36db
(svn r9162) -Codechange: Cleanup of industry_cmd (Step-8). Gather tile animation data into IndustryTileSpec array
...
Added a few documentation on remaining animation arrays (mostly ToyLand ones)
18 years ago
truelight
146e5e12ec
(svn r9097) -Fix [FS#525]: open and close messages now have their own setting, so you can hide economy changes, but do show open/close of industries
...
-Change: store news_display_opt in his own section, so it is no longer stored as uint in openttd.cfg (allows adding news-types easier)
18 years ago
belugas
8eb0a220e6
(svn r9075) -Codechange: Cleanup of industry_cmd (Step-7). Small step that is. The new industry messages do not need a series of tests. Only one property to use.
18 years ago
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
belugas
b71354dc40
(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style.
18 years ago
belugas
771932d889
(svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of IndustryTileSPec, the alter ego of IndustrySpec.
...
It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources. More to come
18 years ago
peter1138
ef2daa5060
(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels.
18 years ago
belugas
1c013055b6
(svn r8535) -Feature: Allow lumbermill to cut trees only when they are full grown.
...
This does not affect output of the mill, but make the visual aspect of it more accurate.
Prior of this, the mill produced cargo of the same amount even if the trees are on their first stages of growth.
18 years ago
tron
63a5b0e8be
(svn r8485) -Fix
...
-Fix (since the dawn of time): Remove phantom oil rigs sometimes present in old savegames
18 years ago
belugas
7b9379e0de
(svn r8145) -Featurette: Allow for Tropic Farm to plant fields after producing cargo, like its counterpart in temperate climate.
18 years ago
peter1138
92d418b031
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago