summaryrefslogtreecommitdiff
path: root/src/subsidy.cpp
AgeCommit message (Collapse)Author
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
2009-09-01(svn r17356) -Fix: actually implement scrolling for the subsidy list instead ↵rubidium
of 'just' showing a scroll bar.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-08(svn r17128) -Codechange: make code used for generating new subsidies nicersmatz
2009-08-08(svn r17124) -Codechange: store subsidies in a pool (instead of an array)smatz
2009-08-08(svn r17119) -Codechange: replace constants in subsidy.cpp by enum valuessmatz
2009-08-08(svn r17117) -Fix (r1): don't create pax subsidy when source town, not ↵smatz
destination town, has good service
2009-08-08(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when ↵smatz
subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source -Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost -Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08(svn r17108) -Fix (r17107): ST_INDUSTRY and ST_TOWN got swapped when setting ↵frosch
up cargo subsidy.
2009-08-07(svn r17107) -Codechange: store type of subsidy source and destination in ↵smatz
the Subsidy struct instead of determining it every time it's needed
2009-08-07(svn r17104) -Codechange: move code related to subsidy awarding to separate ↵smatz
procedure
2009-07-20(svn r16886) -Codechange: unify naming of some string IDs related to string ↵rubidium
codes and group them logically
2009-07-18(svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing ↵smatz
subsidy's age
2009-07-16(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()smatz
2009-07-01(svn r16714) -Codechange: use pool-like accessors for Subsidysmatz
2009-07-01(svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over ↵smatz
all subsidies
2009-07-01(svn r16706) -Fix (r16694): acquiring a subsidy resulted in an assertion.rubidium
2009-06-26(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by ↵smatz
Town::GetRandom() and Industry::GetRandom()
2009-05-24(svn r16418) -Fix: Resolve the company name for 'subsidy awarded'-news when ↵frosch
the news are triggered, so it stays valid when the company bankrupts or is taken over.
2009-05-24(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced ↵frosch
vehicles/stations/industries are deleted.
2009-05-23(svn r16406) -Codechange: constify parameters of CheckSubsidised()smatz
2009-05-23(svn r16403) -Codechange: move code related to subsidies to separate filesmatz