summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
AgeCommit message (Collapse)Author
2019-12-21Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-19Codechange: Use std::vector for industry tile layoutsNiels Martin Hansen
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-27Add: [Newgrf] Some 60+ Vars for industries that were missed in #6867Johannes E. Krause
2019-03-27Cleanup: use switch for industry cargo varsJohannes E. Krause
2019-03-15Fix e66cec8f86: Permit loading of industry production callback with invalid ↵peter1138
cargo type. It is only an error if the invalid result is actually used. This will be silently ignored at the moment. It is still an error if a duplicate cargo type is returned.
2018-11-03Add: NewGRF support for 16-in-16-out industriesNiels Martin Hansen
2018-11-03Add: Industries can produce and accept up to 16 different cargoesNiels Martin Hansen
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-03-11(svn r27984) -Codechange: Make ScopeResolver constructors/destructors ↵frosch
inlineable. Speedup sprite resolving by about 8 percent.
2017-10-25(svn r27929) -Cleanup: Remove unused Industry::random_triggersfrosch
2017-10-25(svn r27928) -Fix: [NewGRF] While executing random triggers, var 5F should ↵frosch
include the new triggers. -Fix: [NewGRF] Reset used random triggers only after all A123 chains have been resolved, so that all RA2 in all chains can test the shard triggers. This also includes multiple RA2 in the same A123 chain. -Fix: [NewGRF] Industry random triggers are stored per tile, even when randomising the shared random bits of the parent industry.
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2015-05-09(svn r27279) -Feature: [NewGRF] Increase the maximum amount of industry ↵frosch
types to 128 per NewGRF and 240 in total.
2015-05-03(svn r27267) -Change: [NewGRF] Translate industry variable A6.frosch
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-03-03(svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject ↵frosch
constructor.
2014-01-12(svn r26240) -Codechange: Pass the GRFFile to ↵frosch
GetErrorMessageFromLocationCallbackResult instead of the GRFID.
2013-12-23(svn r26175) -Add: Log in desync output when persistent storage is discarded.frosch
2013-11-24(svn r26085) -Codechange: Pass ResolverObjects as reference instead of ↵frosch
pointer since they are never NULL.
2013-11-23(svn r26066) -Fix: possible NULL dereference when resolving industry scoperubidium
2013-10-13(svn r25856) -Codechange: Use Industry::TileBelongsToIndustry in one more ↵planetmaker
place (cirdan, LordAro)
2013-02-05(svn r24973) -Fix [FS#5462]: Prevent access to tile-based variables when ↵peter1138
tile is invalid.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-11-10(svn r24693) -Doc: Add some doxymentation into the newgrf code.alberth
2012-11-10(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.alberth
2012-11-10(svn r24690) -Codechange: Add resolver classes for industry tiles.alberth
2012-11-10(svn r24689) -Codechange: Add resolver classes for industries.alberth
2012-11-10(svn r24678) -Codechange: Introduce scope resolver base class and prepare ↵alberth
for adding derived classes.
2012-05-25(svn r24273) -Fix: [NewGRF] GetReverseCargoTranslation() was unnecessary ↵frosch
complicated and also returned the wrong thing for cargos not present in the translation table.
2012-05-11(svn r24224) -Fix [FS#5159]: dereferencing uninitialised pointer (frosch)rubidium
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-10(svn r23474) -Codechange: move the declaration error related functions to ↵rubidium
error.h
2011-12-09(svn r23457) -Codechange: introduce Industry::TileBelongsToIndustry() to ↵yexo
simplify code checking for that
2011-11-08(svn r23155) -Change: [NewGRF v8] Use heightlevel units in var 8A of ↵frosch
callback 28.
2011-11-08(svn r23154) -Change: [NewGRF v8] Use heightlevel units in nearby tile info ↵frosch
variables. (rubidium)
2011-11-08(svn r23147) -Change: [NewGRF v8] Unify the return values of boolean ↵frosch
callbacks, and check the results for validity.
2011-11-08(svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to ↵frosch
use instead of property 18.
2011-11-08(svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x ↵frosch
variables (using var 7B). Currently most useful for vehicle var 60.
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.