rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
6cac8be361
(svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
2010-01-04 18:21:07 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
frosch
bd2aa4d6d0
(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.
2009-09-15 18:47:42 +00:00
rubidium
cbe1b67811
(svn r17356) -Fix: actually implement scrolling for the subsidy list instead of 'just' showing a scroll bar.
2009-09-01 20:42:12 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
smatz
e4e85406d5
(svn r17128) -Codechange: make code used for generating new subsidies nicer
2009-08-08 22:58:49 +00:00
smatz
d59b687f65
(svn r17124) -Codechange: store subsidies in a pool (instead of an array)
2009-08-08 20:53:36 +00:00
smatz
0f1a07d185
(svn r17119) -Codechange: replace constants in subsidy.cpp by enum values
2009-08-08 18:26:25 +00:00
smatz
8e0b03a7e0
(svn r17117) -Fix (r1): don't create pax subsidy when source town, not destination town, has good service
2009-08-08 18:22:29 +00:00
smatz
0502a6df42
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when 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 16:42:55 +00:00
frosch
393e4e62d5
(svn r17108) -Fix (r17107): ST_INDUSTRY and ST_TOWN got swapped when setting up cargo subsidy.
2009-08-08 08:48:39 +00:00
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
2009-08-07 22:23:34 +00:00
smatz
fb24991366
(svn r17104) -Codechange: move code related to subsidy awarding to separate procedure
2009-08-07 20:24:33 +00:00
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
2009-07-20 11:21:57 +00:00
smatz
3564579dc4
(svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age
2009-07-18 19:54:35 +00:00
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19:00:13 +00:00
smatz
93557ba4e9
(svn r16714) -Codechange: use pool-like accessors for Subsidy
2009-07-01 18:45:05 +00:00
smatz
d04750ff87
(svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over all subsidies
2009-07-01 17:43:26 +00:00
rubidium
e189037662
(svn r16706) -Fix (r16694): acquiring a subsidy resulted in an assertion.
2009-07-01 09:45:30 +00:00
smatz
873a205ae6
(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by Town::GetRandom() and Industry::GetRandom()
2009-06-26 15:08:54 +00:00
frosch
80e19b12c3
(svn r16418) -Fix: Resolve the company name for 'subsidy awarded'-news when the news are triggered, so it stays valid when the company bankrupts or is taken over.
2009-05-24 17:23:24 +00:00
frosch
eeb3f75cfe
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
2009-05-24 16:52:42 +00:00
smatz
c1861060f7
(svn r16406) -Codechange: constify parameters of CheckSubsidised()
2009-05-23 19:26:00 +00:00
smatz
1eb48cdded
(svn r16403) -Codechange: move code related to subsidies to separate file
2009-05-23 15:46:00 +00:00