summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
AgeCommit message (Collapse)Author
2021-10-23Codechange: rename 'info_view' to 'rotor_in_gui', because it is only used by ↵frosch
helicopters.
2021-10-23Codechange: remove redundant 'info_view' parameter, it can be derived from ↵frosch
'image_type'.
2021-08-15Fix 2183fd4d: [NewGRF] Use divide instead of right shift for signed numbers. ↵Michael Lutz
(#9480) "For negative a, the value of a >> b is implementation-defined (in most implementations, this performs arithmetic right shift, so that the result remains negative)."
2021-08-15Feature: [NewGRF] Maximum curve speed modifier for rail vehicles (#9346)Vít Šefl
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-05-02Cleanup: Use std::vector in RealSpriteGroup.Peter Nelson
2021-04-30Codechange: Use C++ features for train wagon overrides. (#9141)PeterN
This removes the need for C-style array management and allows use of iterators to perform wagon override lookups.
2021-02-13Codechange: [NewGRF] Make it more explicit which parts of the TTD vehicle ↵Johannes E. Krause
structure (var 80+) are not implemented
2021-01-10Add: [NewGRF] Vehicle variable 4A now also returns, whether the current tile ↵Johannes E. Krause
has catenary.
2021-01-10Add: [NewGRF] vehicle variable 63 to test the tracktype of the current tile ↵frosch
against a given tracktype.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
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.