summaryrefslogtreecommitdiff
path: root/src/cargotype.h
AgeCommit message (Collapse)Author
2021-07-09Codechange: Remove FOR_EACH_SET_CARGO_IDglx22
2021-07-09Codechange: Remove FOR_ALL_SORTED_STANDARD_CARGOSPECSglx22
2021-05-13Fix: Resolve cargo-types of default vehicles via their cargo label.frosch
Default vehicles now behave as if they had a cargo translation table. This fixes default vehicles carrying seemingly random cargos, if NewGRF industry sets are present. This behavior is disabled, when a NewGRF touches any of the cargo-type or refitting properties. In that case it's up to the NewGRF to define its own cargo translation table.
2021-04-29Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loopsglx22
2021-04-28Cleanup: Replace FOR_ALL_SORTED_CARGOSPECS macro with range iterator.Peter Nelson
2021-04-24Fix #9097: Upper 16 bits of cargo base payment rate were discarded. (#9098)PeterN
NewGRF spec says that base payment rate is 32 bits, but it was loaded into a 16 bit variable. This value is loaded into Money variable after inflation is applied.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-18Codechange: use std::vector for _sorted_cargo_specsglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2013-01-14(svn r24915) -Fix: Several out-of-bounds readssmatz
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24848) -Fix [FS#5386]: Consider regearing-like cargos as no-cargo in ↵frosch
cargo filters.
2012-12-01(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from ↵alberth
various sources (including Eagle_rainbow, MinchinWeb)
2012-01-28(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity ↵frosch
multipliers when refitting vehicles, which do not use callback 15.
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-19(svn r23595) -Codechange: add comma after last enum to get a more uniform ↵rubidium
coding style
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-11-23(svn r23298) -Add: track statistics of all incoming and outgoing goods. ↵truebrain
Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen)
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-05-11(svn r19790) -Change: use the typed FOR_EACH_SET_BIT for CargoIDs (adf88)rubidium
2010-04-07(svn r19573) -Fix (r19541): Special cargos did not appear at the refit list.terkhen
2010-04-02(svn r19539) -Codechange: Use a macro to loop through the list of sorted ↵terkhen
cargo specifications.
2010-04-01(svn r19534) -Add: Keep a list of cargo specifications sorted by cargo class ↵terkhen
/ name.
2009-12-05(svn r18413) -Doc: Added doxygen strings for cargo-type related enums, ↵alberth
structs, and functions.
2009-12-05(svn r18410) -Codechange: Move GetCargoSprite() to CargoSpec::GetCargoIcon().alberth
2009-11-05(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up ↵frosch
including of newgrf_cargo.h
2009-09-14(svn r17534) -Codechange: unify the naming of callback masks/flagsrubidium
2009-09-06(svn r17435) -Codechange: Move _cargo_payment_rates[] to ↵frosch
CargoSpec::current_payment.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-16(svn r16853) -Codechange: make CargoSpec const at two placessmatz
2009-07-16(svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all ↵smatz
valid CargoSpecs
2009-07-16(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()smatz
2009-06-25(svn r16661) -Codechange: move definition of few very short functions to ↵smatz
header files
2008-07-30(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.frosch
2008-05-07(svn r12986) -Codechange: move the landscape and transport related types ↵rubidium
from openttd.h to their own headers.
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-04-17(svn r12751) -Codechange: do what has been done in r11862 in a different way ↵rubidium
so it uses less memory.
2008-03-28(svn r12458) -Codechange: split acquiring the sprite ID for cargos from the ↵rubidium
actual drawing of them.
2008-01-15(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same ↵rubidium
cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too.
2008-01-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.
2007-12-23(svn r11684) -Codechange: split gfx.h in a type and functional header.rubidium
2007-12-21(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.rubidium
2007-07-19(svn r10628) -Fix (r10606,FS#1055): Revert r10606 and fix the plural problem ↵peter1138
another way.
2007-07-17(svn r10606) -Fix (r8826): plural and single cargo names were mixed up.peter1138
2007-04-13(svn r9620) -Codechange: apply cargo translation table to newstation ↵peter1138
variables 0x60..0x65
2007-03-23(svn r9418) -Codechange: Implement actions 1/2/3 for cargos, callback ↵peter1138
handler and custom icon sprites
2007-03-22(svn r9411) -Codechange: Add support for loading of newcargo data.peter1138
2007-03-19(svn r9327) -Fix (r9301): Fix warning on MSVCpeter1138
2007-03-18(svn r9301) -Codechange: Use cargo class to determine if a road vehicle can ↵peter1138
stop in bus or truck stops.