summaryrefslogtreecommitdiff
path: root/src/industry.h
AgeCommit message (Collapse)Author
2007-09-27(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14Cglx
2007-09-26(svn r11170) -Fix (r11152): a variable's type was too small for the data ↵rubidium
that is going to put into it when NewIndustries are finally activated. For now it just removes a warning and doesn't really fix anything.
2007-09-22(svn r11143) -Fix: the random bits were not set for the production callback ↵rubidium
when the NewGRF asked for it.
2007-09-22(svn r11139) -Codechange: add support for persistent storage for NewGRFs.rubidium
2007-09-22(svn r11137) -Feature: [NewGRF] Add support for bit 17 of property 1A for ↵belugas
Industries. This bit enables the protection of the last instance of an industry type once raise.
2007-08-30(svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with ↵rubidium
templates. This gives up to 10% performance increase in games with lots of vehicles.
2007-08-26(svn r10980) -Fix [FS#1158] : This will hopefully fix the case of an assert ↵belugas
that happens when an industry uses a special gfx index (tile spec 0xFF). This 0xFF is the sentinel of a special check done for oil rigs, where water need to be around, but no tile will be constructed on it. Problem is that the upper limit of gfx tiles is currently at 175. So, of course the system will assert with 255 ;)
2007-08-24(svn r10972) -Codechange: Implement the ↵belugas
counterpart(GetTranslatedIndustryTileID) of getindustileid of TTDPatch. This allows to ensure that the ID of a tile (taken out of the map or not) is still a valid one regarding the possible override it may have been flagged to. It is not the strict same thing, but is what we need regarding the slightly different approach we took for newindustries.
2007-08-22(svn r10963) -Revert(10700): Although the idea was good, it was more prone ↵belugas
of errors than usefull. So now, it will be better to jump to the overriden tile when it is been marked as an override
2007-08-22(svn r10961) -Codechange: Flag default substitutes of industry/tiles with a ↵belugas
value that cannot be legal. This avoids the forest of coal mine error in the futur
2007-08-15(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational ↵belugas
Action 2 for Industries
2007-08-02(svn r10759) -Codechange: make the industry struct use the pool item class ↵rubidium
as super class.
2007-07-27(svn r10700) -Codechange: Enable to jump (by default) to the overriding ↵belugas
industry tile spec of the one been queried. Only on certain very specific circumstances do we need the original spec
2007-07-24(svn r10675) -Codechange: unhardcode the industry types used in several ↵rubidium
locations of the source code.
2007-07-20(svn r10639) -Codechange: Give meaninfull name to a magic numberbelugas
2007-07-15(svn r10570) -Codechange: Add enum required for Callback 0x22: ↵belugas
CBID_INDUSTRY_AVAILABLE -Documentation: Add documentation for enum IndustryConstructionType, which describes how the industry has been created
2007-07-11(svn r10508) -Codechange: allow customizable animation schemes for industries.rubidium
2007-07-07(svn r10460) -Codechange: add some more variables needed for newindustries ↵rubidium
regarding to the creation of the industries.
2007-07-06(svn r10459) -Codechange: add helper functions to determine whether an ↵rubidium
industry is a primary industry and how much it costs to build such an industry.
2007-07-06(svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an ↵rubidium
amount of money and then it might (with a given chance) build a raw industry somewhere on the map.
2007-07-05(svn r10447) -Codechange: Don't need to specify values on an enum when those ↵belugas
values are contiguous
2007-07-04(svn r10439) -Codechange: initial steps for customized industry productions.rubidium
2007-07-03(svn r10418) -Codechange: implement/resurrect the industry production flags.rubidium
2007-07-01(svn r10406) -Fix [FS#968]: only industries in the temperate climate should ↵rubidium
be affected by the "do not increase production" flag.
2007-06-28(svn r10379) -Codechange: silence a compiler warning (which was right) about ↵belugas
a variable too little for what's been asked to do
2007-06-10(svn r10088) -Codechange: A typo and a code-stylebelugas
2007-06-10(svn r10078) -Codechange: Centralize all industry counts data and accessbelugas
2007-06-08(svn r10064) -Fix(r10063): compile again, when changing stuff. DOn't trust ↵belugas
first run
2007-06-08(svn r10063) -Codechange: Change VARDEF for externbelugas
-CodeChange: Add the count of industries, basic support for variable 67, var action02 forindustries
2007-06-07(svn r10058) -Codechange: give some industry variable sensible names (like ↵rubidium
not telling "last_mo_production" when it is the production of the current month).
2007-06-07(svn r10054) -Codechange: make the industries cost modifier look more like ↵rubidium
the original one, so it's much easier to support industries that use this original format.
2007-05-31(svn r10001) -Codechange: Add support for removing dynamically allocated ↵belugas
newgrf data
2007-05-29(svn r9976) -Codechange: Declare a writable array of specs for industry and ↵belugas
industry tiles. It will be initialized by the original data upon game start. Rename some enums to be more consistent too
2007-05-29(svn r9974) -Codechange: Remove the enabled member of GRFFileProps, since ↵belugas
it'snot really grf related
2007-05-29(svn r9969) -Codechange: Cleanup of industries (Step-14). Remove ↵belugas
hardcoded-run-time tile acceptance and put in corresponding tile
2007-05-24(svn r9906) -Codechange: Add common properties for both industry and ↵belugas
industry tiles specs
2007-05-20(svn r9886) -Codechange: Cleanup of industries (Step-13). Include the sounds ↵belugas
table into the industry's spec.
2007-05-18(svn r9870) -Codechange: Silence two compiler warnings and give proper type ↵belugas
to the "type" member of industry struct
2007-05-18(svn r9868) -Codechange: bring external declaration of functions togueter ↵belugas
and adjust a comment
2007-05-18(svn r9867) -Codechange: Remove data duplication. The exact same values can ↵belugas
be found in the industry spec, so take it from there instead.
2007-05-17(svn r9866) -Codechange: remove the technical ↵rubidium
one-input-cargo-creates-one-output-cargo limit in the factories, sawmills, steelmills and the ones I'm forgetting to mention right now. Use of this functionality will come later.
2007-04-26(svn r9721) -Codechange: -Codechange: Cleanup of industry_cmd (Step-12). ↵belugas
Dynamically build the legends (name and color) for industries in the smallmap_gui. All the tiny fonts industry names should be removed from language files soon.
2007-04-19(svn r9676) -Codechange: introduce NUM_INDUSTRYTYPES instead of IT_END.belugas
This makes the code clearer.
2007-04-09(svn r9577) -Codechange: Add notion and data for industry map colour, used ↵belugas
in the smallmap_gui. Not used yet. -Move the check proc array, in order to make it more useful latter. -Add basic newGRF stuff on the industry spec. Not used yet.
2007-04-03(svn r9550) -Codechange: Add notion and data of industry appearing chances, ↵belugas
both in game and in creation mode. Not used yet.
2007-03-28(svn r9520) -Codechange: Add the notion of Industry behaviour. It means ↵belugas
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...
2007-03-15(svn r9190) -Fix: Little typo in an enum.belugas
2007-03-14(svn r9162) -Codechange: Cleanup of industry_cmd (Step-8). Gather tile ↵belugas
animation data into IndustryTileSpec array Added a few documentation on remaining animation arrays (mostly ToyLand ones)
2007-03-09(svn r9075) -Codechange: Cleanup of industry_cmd (Step-7). Small step that ↵belugas
is. The new industry messages do not need a series of tests. Only one property to use.
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium