Tyler Trahan
d09210e1c6
Feature: Configurable subsidy duration
3 years ago
dP
380fd8cab4
Fix: Make subsidies scan tiles for town acceptance and production instead of using desync-prone town caches
4 years ago
glx
0b489f9924
Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops
5 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Charles Pigott
2e1936da64
Codechange: Remove SourceTypeByte type
6 years ago
Charles Pigott
5b34c8019f
Codechange: Remove Company/OwnerByte types
6 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
alberth
4af8c2d5e1
(svn r23704) -Doc: Doxygen comment fixes and additions.
13 years ago
truebrain
39f2d75e03
(svn r23700) -Fix: the size of the Subsidies pool used a random macro, which didn't really make sense in the grand scheme of things
13 years ago
truebrain
1c9bec1999
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
rubidium
398418b8fa
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
e2c404958d
(svn r17127) -Fix (r17124): destructor has to be defined else operator delete might be called with NULL parameter
15 years ago
smatz
13e23141b4
(svn r17124) -Codechange: store subsidies in a pool (instead of an array)
15 years ago
smatz
046be0a199
(svn r17119) -Codechange: replace constants in subsidy.cpp by enum values
15 years ago
smatz
2a430d981f
(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
15 years ago
smatz
74d3382b94
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
15 years ago
smatz
3532592e7d
(svn r17104) -Codechange: move code related to subsidy awarding to separate procedure
15 years ago
smatz
af13707e00
(svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age
15 years ago
smatz
1e6a12b75b
(svn r16724) -Fix (r16714): MSVC 64bit warnings (Rubidium)
15 years ago
smatz
76a50ce94d
(svn r16714) -Codechange: use pool-like accessors for Subsidy
15 years ago