summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
AgeCommit message (Collapse)Author
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-07-11(svn r22656) -Codechange: Deduplicate the custom error message of the ↵michi_cc
industry shape and location callbacks.
2011-07-10(svn r22648) -Fix (r22629): Missing 'break'. (thanks michi_cc)frosch
2011-07-04(svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' ↵frosch
is intentionally removed, it is only used together with 'scope'.
2011-07-03(svn r22629) -Fix [FS#4599]: Remove all usages of the ErrorRefStack. It was ↵frosch
continuously overwritten by e.g. industry prospection without closing the old error window; also StopTextRefStackUsage() was not called for errors returned by commands (which caused FS#4599). Now return in the CommandCost result whether the textref stack needs to be used, and store a copy of the stack values in the error window just like for the normal string parameters.
2011-07-03(svn r22627) -Codechange: Rename PrepareTextRefStackUsage() to ↵frosch
StartTextRefStackUsage() to make it more obvious that you must call StopTextRefStackUsage() at some point. Also extent the documentation.
2011-06-12(svn r22569) -Feature: [NewGRF] Persistent storage for towns.terkhen
2011-06-12(svn r22567) -Codechange: Store persistent storages inside a pool.terkhen
2011-06-12(svn r22564) -Codechange: Rename Get and Store persistent storage functions ↵terkhen
to GetValue and StoreValue.
2011-06-12(svn r22563) -Codechange: Use a function for storing values inside the ↵terkhen
persistent storage.
2011-06-12(svn r22562) -Codechange: Remove constness from TownGetVariable.terkhen
2011-05-07(svn r22434) -Feature [FS#4591]: [NewGRF] Allow to filter by town of the ↵terkhen
current industry when using industry variable 0x68 (Yexo)
2011-05-02(svn r22410) -Document: some more bits ;)rubidium
2010-11-20(svn r21270) -Doc: Doxyment updates and additions. Removal of doxyment in code.alberth
2010-11-15(svn r21198) -Fix: don't call variables properties in debug messagesrubidium
2010-10-28(svn r21052) -Fix (r20435): house/airporttile/industrytile newgrfs that ↵yexo
defined tiles that relied on the substitute being drawn were broken
2010-10-19(svn r20996) -Change: [NewGRF] the X and Y offsets in the parameter for ↵yexo
industry vars 60,61,62,63 are unsigned instead of signed
2010-10-16(svn r20942) -Feature [NewGRF]: make it possible to distinguish player ↵rubidium
built/randomly placed industries in the location and land slope check callbacks
2010-10-09(svn r20912) -Fix [FS#4157]: NEW_INDUSTRYOFFSET != NEW_INDUSTRYTILEOFFSET.frosch
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-26(svn r20622) -Codechange: unify ↵rubidium
[GS]et[Statation|Object|Industry|House]AnimationFrame
2010-08-10(svn r20435) -Codechange: move spritegroup to GRFFilePropsBase and prepare ↵rubidium
it for more spritegroups
2010-08-07(svn r20396) -Codechange: introduce a helper function to test whether an ↵yexo
industry temporarily refues to accept some cargo
2010-08-01(svn r20286) -Codechange: Unify end of doxygen comments.frosch
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-29(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).terkhen
2010-05-29(svn r19901) -Add: [NewGRF] Access to industry founder (var A7) during ↵frosch
callbacks 28 and 2F. (yexo)
2010-05-01(svn r19750) -Fix: Var 0x43 is not 'safe' during callbacks 22 and 38 either.frosch
2010-05-01(svn r19749) -Fix: [NewGRF] possible divide-by-zero if a newgrf checked ↵yexo
industry var 42 while the production level was 0
2010-05-01(svn r19748) -Fix (r19743): Callback 22 and 38 are called with ind == NULL.frosch
2010-05-01(svn r19744) -Add [FS#3477]: [NewGRF] Access to random bits of houses and ↵frosch
industries from construction callbacks 17, 28 and 2F. That is: The randombits the house/industry will start with, if construction succeeds.
2010-05-01(svn r19743) -Fix: NewGrfs could access map bits of not yet constructed ↵frosch
industries and houses during construction callbacks.
2010-04-24(svn r19713) -Fix [NewGRF]: passing some invalid data to industry variable ↵rubidium
67/68 could cause a crash
2010-04-24(svn r19707) -Add: helper functions to instantiate/fill ResolverObjectsrubidium
2010-04-05(svn r19566) -Fix (r11216, r11202): don't return a random colour for unowned ↵rubidium
industries in var 45; TTDPatch doesn't seem to set the colour data in that case either.
2010-03-20(svn r19481) -Codechange: Turn _industry_counts into a static member of ↵frosch
Industry.
2010-02-24(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bitsmatz
2010-02-21(svn r19185) -Codechange: Return succeeded or failed CommandCost from ↵alberth
CheckIfCallBackAllowsCreation().
2010-02-02(svn r18988) -Fix: [NewGRF] industry var A5 (=high 8 bits of var A4) ↵yexo
returned the high 8 bits of var A2. Same problem for 9B/9A/98
2010-01-21(svn r18878) -Fix [NewGRF]: crash when a newgrf used var62 in an industry ↵yexo
tile chain when the industry tile was part of an original industry
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-04(svn r18717) -Codechange: use TileArea in industry instead of three separate ↵rubidium
variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
2009-10-31(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string ↵alberth
before the details string. Gentlemen, swap your string parameters.
2009-10-24(svn r17857) -Fix (r10442): [NewGRF] 'subtract-in' is also signed for ↵frosch
production callback version 0.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-19(svn r17579) -Fix: remove doxygen docs for removed parameters, or change ↵rubidium
@param to @tparam if necessary
2009-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-09-14(svn r17534) -Codechange: unify the naming of callback masks/flagsrubidium
2009-09-13(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty ↵frosch
for more consistency and distinguishability.
2009-08-30(svn r17316) -Codechange: use Industry::GetByTile() instead of ↵smatz
GetIndustryByTile()