summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.h
AgeCommit message (Collapse)Author
2021-05-02Cleanup: Use std::vector in RandomSpriteGroup.Peter Nelson
2021-05-02Cleanup: Use std::vector in DeterministicSpriteGroup.Peter Nelson
2021-05-02Cleanup: Use std::vector in RealSpriteGroup.Peter Nelson
2020-01-26Feature: NewGRF callback profiling (#7868)Niels Martin Hansen
Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
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-03-11(svn r27989) -Fix (r27985): VA2 optimisation failed in various special cases:frosch
- nvar=0 is meant to return the calculated result. - Missing references resolve to NULL and got identified with the default result. - Missing 'break' broke overlapping cases. - Splitting into non-overlapping cases could result in more than 256 cases.
2018-03-11(svn r27985) -Codechange: Convert VA2 switches into ones with ↵frosch
non-overlapping ranges, sort them and resolve them using binary search. Speedup sprite resolving by about 7 percent.
2018-03-11(svn r27984) -Codechange: Make ScopeResolver constructors/destructors ↵frosch
inlineable. Speedup sprite resolving by about 8 percent.
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.
2014-03-03(svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject ↵frosch
constructor.
2014-03-03(svn r26387) -Cleanup (r26173): No need to manually clear registers before ↵frosch
resolving.
2013-12-23(svn r26172) -Codechange: Make SpriteGroup::Resolve aware of nested calls.frosch
2013-11-24(svn r26085) -Codechange: Pass ResolverObjects as reference instead of ↵frosch
pointer since they are never NULL.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-11-11(svn r24695) -Fix/Cleanup: Remove remaining (incorrect) usages of ↵frosch
ResolverObject::scope and count.
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 r24691) -Codechange: Add resolver classes for vehicles.alberth
2012-11-10(svn r24690) -Codechange: Add resolver classes for industry tiles.alberth
2012-11-10(svn r24688) -Codechange: Add resolver classes for generics.alberth
2012-11-10(svn r24687) -Codechange: Add resolver classes for airports.alberth
2012-11-10(svn r24685) -Codechange: Add resolver classes for rail types.alberth
2012-11-10(svn r24684) -Codechange: Add resolver classes for stations.alberth
2012-11-10(svn r24683) -Codechange: Add resolver classes for objects.alberth
2012-11-10(svn r24682) -Codechange: Add resolver classes for houses.alberth
2012-11-10(svn r24681) -Codechange: Add resolver classes for cargoes.alberth
2012-11-10(svn r24680) -Codechange: Add resolver classes for canals.alberth
2012-11-10(svn r24679) -Codechange: Add resolver classes for towns.alberth
2012-11-10(svn r24678) -Codechange: Introduce scope resolver base class and prepare ↵alberth
for adding derived classes.
2012-01-03(svn r23735) -Codechange: remove ~50 includes from headers that weren't neededrubidium
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-08(svn r23136) -Change: [NewGRF v8] Deprecate old-style callback results 0xFF??.frosch
2011-10-31(svn r23072) -Feature: [NewGRF] House callback 0x148.michi_cc
2011-09-11(svn r22924) -Codechange: Enhance NewGRFSpriteLayout for drawing ↵frosch
construction stages in spritelayouts with inconsistent number of sprites per spriteset.
2011-09-11(svn r22923) -Codechange: Move application of the construction stage into ↵frosch
TileLayoutSpriteGroup::ProcessRegisters().
2011-08-08(svn r22731) -Fix: [NewGRF] The construction stage sprites were incorrectly ↵frosch
selected in cases other than 1 or 4 sprites per set.
2011-08-06(svn r22723) -Fix: Do not restrict AdvVarAct2 to 255 operations.frosch
2011-07-11(svn r22659) -Add: [NewGRF] Support for the land slope check callback for ↵michi_cc
stations.
2011-07-04(svn r22635) -Fix: Correctly reseed random bits of industries and industry ↵frosch
tiles.
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-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 r22561) -Codechange: Remove constness from Object in ResolverObject.terkhen
2011-06-12(svn r22560) -Codechange: Remove constness from House in ResolverObject.terkhen
2011-06-12(svn r22559) -Codechange: Remove constness from Station in ResolverObject.terkhen
2011-06-12(svn r22558) -Codechange: Remove constness from BaseStation in ResolverObject.terkhen
2011-05-29(svn r22518) -Feature: [NewGRF] Advanced sprite layouts with register modifiers.frosch