summaryrefslogtreecommitdiff
path: root/src/newgrf_cargo.cpp
AgeCommit message (Collapse)Author
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.
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.
2013-11-24(svn r26085) -Codechange: Pass ResolverObjects as reference instead of ↵frosch
pointer since they are never NULL.
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 r24681) -Codechange: Add resolver classes for cargoes.alberth
2012-11-10(svn r24678) -Codechange: Introduce scope resolver base class and prepare ↵alberth
for adding derived classes.
2012-05-25(svn r24277) -Codechange: Store cargo and railtype translation tables in a ↵frosch
SmallVector.
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-02-08(svn r23917) -Fix (r11252,, r23914, r23915): Also use the CTT for refitmasks ↵frosch
for version 6 GRFs. I.e. fix the cursed GetCargoTranslation() function for the fourth time.
2012-02-07(svn r23914) -Fix (r11252, r13855): Don't test validity of cargobits using a ↵frosch
mask of cargoslots.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
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-07-04(svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' ↵frosch
is intentionally removed, it is only used together with 'scope'.
2010-11-15(svn r21198) -Fix: don't call variables properties in debug messagesrubidium
2010-02-14(svn r19132) -Codechange: No need to end a line with ;;.alberth
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
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-16(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()smatz
2009-05-23(svn r16402) -Codechange: make Resolve a function of SpriteGrouprubidium
2009-05-23(svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses ↵rubidium
instead of using a big union
2009-02-18(svn r15513) -Cleanup: Unavailable varaction variable value does not matter, ↵peter1138
but at least it can be consistent.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2008-07-30(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.frosch
2008-07-28(svn r13855) -Fix [FS#2157]: Cargo type lookup was incorrect for GRFv7 files ↵peter1138
without a translation table.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-03-27(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.glx
2008-02-15(svn r12142) -Fix [FS#1766]: Callback 0x3D always gets a cargobit in var ↵frosch
0x18, independent of grf version.
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-10-13(svn r11252) -Revert r11239, Fix r9620: cargo translation was not done correctlyglx
2007-07-25(svn r10690) -Codechange: use the enum that describes all callback IDs in ↵rubidium
favor of "just" using an untyped integer.
2007-07-08(svn r10477) -Codechange: add some callbacks to customise the acceptance of ↵rubidium
industries.
2007-05-20(svn r9888) -Codechange: [NewGRF] allow non-spec cargo action2s to work, and ↵peter1138
using the goods sprite if really nothing is returned.
2007-04-13(svn r9620) -Codechange: apply cargo translation table to newstation ↵peter1138
variables 0x60..0x65
2007-03-26(svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo ↵peter1138
resolver
2007-03-23(svn r9418) -Codechange: Implement actions 1/2/3 for cargos, callback ↵peter1138
handler and custom icon sprites
2007-02-22(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping ↵peter1138
tables with dynamically generated data. Change associated code to use new functions.
2007-01-10(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files ↵KUDr
renamed to .cpp)