summaryrefslogtreecommitdiff
path: root/src/cargotype.cpp
AgeCommit message (Collapse)Author
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-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-06-27Fix: Compiler warnings about memsetting non-trivial classesCharles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-18Codechange: use std::vector for _sorted_cargo_specsglx
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
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
2012-12-23(svn r24848) -Fix [FS#5386]: Consider regearing-like cargos as no-cargo in ↵frosch
cargo filters.
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.
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-04-30(svn r22385) -Fix [FS#4603]: strnatcmp is in string.cpp, so it ought to be ↵rubidium
declared in string_func.h.
2010-11-27(svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU.terkhen
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-04-07(svn r19573) -Fix (r19541): Special cargos did not appear at the refit list.terkhen
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-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
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
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-01-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.
2008-01-04(svn r11758) -Fix(ette): Populate 'void' cargo slots (unused slots in ↵peter1138
temperate and arctic) with default data as per pre-newcargo support. These slots are still disabled by default, but some NewGRFs (erroneously?) expect the default data.
2007-12-21(svn r11674) -Codechange: refactor some functions out of macros.h into more ↵rubidium
logical locations.
2007-11-20(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the ↵skidd13
remaining to fit with the naming style
2007-05-18(svn r9871) -Fix (r8826): Some cargo costs were wrong for different ↵peter1138
climates. Multiple definitions of the same cargo type are sometimes required.
2007-04-13(svn r9620) -Codechange: apply cargo translation table to newstation ↵peter1138
variables 0x60..0x65
2007-03-22(svn r9412) -Fix (r8886): When looking up a cargo type by label skip ↵peter1138
disabled cargos
2007-03-22(svn r9411) -Codechange: Add support for loading of newcargo data.peter1138
2007-02-24(svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo ↵peter1138
mapping is now dealt with only in NewGRF code, on load where possible.
2007-02-24(svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table ↵peter1138
support, applied to action 3s only.
2007-02-23(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few ↵belugas
comments style.
2007-02-23(svn r8858) -Codechange: Replace magic number test with class method for ↵peter1138
determining if a cargo is valid/active.
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-02-20(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular ↵peter1138
struct array (with accessor) and implement new initialization method using cargo labels.