summaryrefslogtreecommitdiff
path: root/src/subsidy.cpp
AgeCommit message (Collapse)Author
2021-07-03Codechange: replace InjectDParam/ShiftParameters by setting the right ↵rubidium42
parameter values in the first place
2021-07-01Codechange: create a type for the "free_data" of NewsItems and (de)allocate ↵rubidium42
it with new and delete
2021-06-10Feature: Configurable subsidy durationTyler Trahan
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-13Codechange: Replace TILE_AREA_LOOP with range-based for loopsglx22
2021-04-21Cleanup: Replace single-use Pair struct with std::pair.Peter Nelson
This struct is defined in geometry_type but not used by any geometry-related code, only for subsidy code where both parameters are cast from int to NewsReferenceType.
2020-09-24Fix 380fd8c: Only check houses for cargo when generating subsidies with townsdP
2020-06-28Change #8159: Remove now unused town cargo caches without bumping the ↵dP
savegame version
2020-06-28Fix: Make subsidies scan tiles for town acceptance and production instead of ↵dP
using desync-prone town caches
2019-12-21Codechange: Replace FOR_ALL_TOWNS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-11Fix 50e08f333a: Creating a cargo subsidy with town as source did not ↵SamuXarick
consider min population. (#7493)
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::Include() with include()Henry Wilson
2019-03-09Feature: Non-rectangular sparse station catchment area.Peter Nelson
2019-03-09Codechange: Convert IndustryVector to a std::set.peter1138
2018-11-03Add: NewGRF support for 16-in-16-out industriesNiels Martin Hansen
2018-11-03Add: Industries can produce and accept up to 16 different cargoesNiels Martin Hansen
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
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
2013-10-19(svn r25882) -Change [FS#5766]: Don't offer subsidies for auto-distributed ↵fonsinchen
cargo.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-07-10(svn r24395) -Doc: Fixed argument references in @param descriptions.alberth
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-04-25(svn r24179) -Codechange: move some variables of Town to TownCacherubidium
2012-04-21(svn r24158) -Fix (r23408): Town producing no cargo at all could spawn ↵frosch
passenger subsidies.
2012-02-02(svn r23876) -Fix (r23408) [FS#5039]: Generate industry subsidies again. ↵terkhen
(Emmeran)
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-01(svn r23704) -Doc: Doxygen comment fixes and additions.alberth
2011-12-19(svn r23628) -Add: ScriptSubsidy::Create, to create subsidies (GameScript only)truebrain
2011-12-19(svn r23622) -Add: a set of events to trigger in a GameScripttruebrain
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-12-03(svn r23408) -Feature: Allow to create subsidies for any combination of ↵terkhen
source and destination types. -Change: Do not rely in TownEffects for awarding subsidies.
2011-11-29(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)truebrain
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)
2011-09-11(svn r22920) -Cleanup: replace two very old town variables taht were rarely ↵yexo
used by small functions that compute there value on-the-fly when necessary
2011-02-19(svn r22116) -Codechange: use PoolBase::Clean() at more placessmatz
2010-12-09(svn r21442) -Fix [FS#4293] (r21412): don't use the current company for ↵rubidium
awarding subsidies; it's not quite valid there
2010-12-05(svn r21412) -Codechange: limit company name by amount of characters, not bytesrubidium
2010-11-24(svn r21309) -Fix: second parameter of SetupSubsidyDecodeParam() is a bool, ↵glx
so use a bool when calling the function
2010-05-13(svn r19812) -Codechange: give some unnamed enums a name or, in case they ↵rubidium
consisted of unrelated values use static const (u)int
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
2010-01-04(svn r18717) -Codechange: use TileArea in industry instead of three separate ↵rubidium
variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-15(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.frosch