summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
AgeCommit message (Collapse)Author
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-12-21Codechange: Replace FOR_ALL_ENGINES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-13Codechange: use std::sort() for all std::vector typesglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Find() with std::find()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replaced SmallVector::Get() const with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Reset() with std::vector::clear() + ↵Henry Wilson
shrink_to_fit()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
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.
2016-10-16(svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites.frosch
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2014-12-07(svn r27075) -Fix [FS#6182]: Variable 47 used the carge translation table of ↵frosch
the wrong GRF in case of callback 1D.
2014-11-11(svn r27060) -Doc: Remove obsolete comment (64KB LUT would be 8GB with ↵peter1138
current limits)
2014-10-10(svn r26988) -Add: [NewGRF] Allow callback 160 to access variable 61.frosch
2014-09-21(svn r26866) -Change: make aircraft ascend/descend when they are too close ↵rubidium
to the ground or too far away (based on patch by ic111)
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-26(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress).frosch
2014-03-03(svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject ↵frosch
constructor.
2014-02-03(svn r26294) -Change: [NewGRF] Make vehicle variable 61 return 'not ↵frosch
available' instead of zero when using it in invalid callback contexts.
2013-12-13(svn r26157) -Feature: [NewGRF] Vehicle variable 4D for determining the ↵frosch
position within an articulated vehicle.
2013-11-24(svn r26085) -Codechange: Pass ResolverObjects as reference instead of ↵frosch
pointer since they are never NULL.
2013-08-09(svn r25705) -Fix: a number of typos (inspired by ↵rubidium
90c920601c84975acb694f3673e2beb08b013753)
2013-04-13(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() ↵frosch
and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
2013-02-14(svn r24994) -Codechange: Replace access to service_interval with accessors ↵rubidium
(peter1138)
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 r24678) -Codechange: Introduce scope resolver base class and prepare ↵alberth
for adding derived classes.
2012-09-16(svn r24528) -Fix: [NewGRF] RandomAction 84 should interpret register 100 as ↵frosch
signed.
2012-09-16(svn r24527) -Add: [NewGRF] Allow resolving var 5F via vehicle var 61.frosch
2012-07-02(svn r24371) -Add: [NewGRF] Allow vehicle variable 61 for callback 2D ↵michi_cc
(recolour) and re-randomisation.
2012-06-28(svn r24360) -Fix [FS#5224]: Ship-specific 80+x variables were missing for ↵frosch
unknown reason. (Hirundo)
2012-06-07(svn r24330) -Fix (r24321): Do not use the vehicle list order changes from ↵frosch
the previous savegames, but only ever from the current one.
2012-06-03(svn r24321) -Change/Fix [FS#4254]: [NewGRF] Group vehicles in the purchase ↵frosch
list properly by source GRF, but also consider engine GRFID overrides.
2012-05-14(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max ↵michi_cc
speed for vehicles.
2012-02-19(svn r23965) -Fix [FS#5070]: Refittability should never depend on the ↵frosch
current capacity of a vehicle.
2012-01-03(svn r23748) -Fix: Make vehicle variables A8 and A9 always return 0. ↵frosch
Returning cur_image is a potential desyncer due to Action1 in static NewGRFs.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-12-12(svn r23503) -Fix (r23143): Desync debug wants to resolve vehicle variables ↵frosch
of vehicles without NewGRF. So, let it.
2011-12-12(svn r23502) -Fix (r23143): Vehicle var 42 used a cargo translation table of ↵frosch
the wrong GRF.