summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
AgeCommit message (Collapse)Author
2007-10-05(svn r11202) -Feature: [NewGRF] Add support for var 45 for Industries.belugas
2007-10-04(svn r11199) -Fix: variable 67 and 68 not working correctly.rubidium
-Refactor: some code so there is less code duplication.
2007-09-30(svn r11189) -Fix: if the location check callback results in something ↵rubidium
invalid (i.e. not a callback result), the industry should be allowed to be build as that's how TTDP does it.
2007-09-27(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14Cglx
2007-09-23(svn r11152) -Fix: GetIndustryIDAtOffset crashed when translation of the GFX ↵rubidium
ID would be needed. Fix by Belugas. -Fix: GetIndustryIDAtOffset crashed when the industry->xy tile was not an industry tile.
2007-09-23(svn r11151) -Codechange: add (partial) support for randomizing industry ↵rubidium
triggers (part of the backend for it). Furthermore update the documentation of the map's bits wrt to industries.
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-19(svn r11131) -Fix (r11126): forgot to commit the changes that performed the ↵rubidium
actual fix.
2007-09-18(svn r11126) -Fix: the algorithm to determine the closest water/land was flawed.rubidium
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-17(svn r10926) -Feature: [NewGRF] Add support for variable 67(for real this ↵belugas
time) and 68 of Variational Action 2 for Industries -Fix: a very few codestyle/comments-typo changes
2007-08-15(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational ↵belugas
Action 2 for Industries
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-25(svn r10690) -Codechange: use the enum that describes all callback IDs in ↵rubidium
favor of "just" using an untyped integer.
2007-07-24(svn r10669) -Codechange: Removed redundant commentbelugas
-Codechange: Add placeholder for yet another industry "variable" to code
2007-07-15(svn r10572) -Codechange: Add function CheckIfCallBackAllowsAvailability for ↵belugas
industries
2007-07-12(svn r10518) -Fix: use the location of the industry and not INVALID_TILE for ↵rubidium
production callbacks; makes looking at the environment of an industry a lot more useful.
2007-07-12(svn r10517) -Fix: the "closest distance to water/land" calculation gave the ↵rubidium
distance to the north-eastern border instead of the closest water/land.
2007-07-11(svn r10515) -Codechange: allow getting some more data about the environment ↵rubidium
of an industry.
2007-07-11(svn r10514) -Codechange: add support for getting the nearest industry with ↵rubidium
a given type.
2007-07-09(svn r10487) -Fix: forgot some breaks in a switch statement.rubidium
2007-07-09(svn r10485) -Codechange: add a callback mechanism to determine whether ↵rubidium
building an industry is allowed at a given location.
2007-07-08(svn r10473) -Codechange: make the industry "window", the one that shows ↵rubidium
when you click on an industry, more flexible to allow easier integration with newindustries.
2007-07-07(svn r10466) -Fix: the minimum amount of waiting cargo shouldn't be 65535; ↵rubidium
that should be the maximum amount of waiting cargo.
2007-07-07(svn r10460) -Codechange: add some more variables needed for newindustries ↵rubidium
regarding to the creation of the industries.
2007-07-05(svn r10442) -Codechange: implement the industry production callback.rubidium
2007-07-04(svn r10440) -Fix: CBM_IND defines bits to be set, not bitsets.rubidium
2007-07-04(svn r10439) -Codechange: initial steps for customized industry productions.rubidium
2007-06-28(svn r10369) -Codechange: Add the IndustryType parameter to the ↵belugas
GetIndustryCallback function. Sometimes, the industry might not be able to provide its type, since it does not exists at all
2007-06-21(svn r10256) -Add: Addition of IndustryTileOverrideManagerbelugas
2007-06-13(svn r10127) -Add: Addition of basic structure for industry tiles callbacks ↵belugas
(unfinished). -Codechange: ResolverObject receives member gfx, making it compatible for both industries and industry tiles -Codechange: NewIndustryResolver now has his randombits and triggers (even if not implemented)
2007-06-12(svn r10108) -Codechange: implement variable 0x60 (Get industry tile ID at ↵belugas
offset) for industries. It is exposed for for industry tiles who will reuse it too, for variable 0x62.
2007-06-09(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic ↵belugas
(and unfinished) support for callbacks for industries