summaryrefslogtreecommitdiff
path: root/src/economy_type.h
AgeCommit message (Collapse)Author
2020-12-28Fix #8297: Infrastructure counters for road tunnels, bridges, depots … (#8454)gooball
The previous fix 887e9481ff0e70df6bf93ce15a3899a03f124c50 only worked for roads and failed to consider a multiplier used for the infrastructure totals for tunnels/bridges. Also, depots and bus/truck stops are counted as 2 road pieces on creation but were only counted as 1 road piece on conversion because the function DiagDirToRoadBits() was used, which only ever returns single-piece road segments. Co-authored-by: A. S <admin-git@sotai.tk>
2020-12-16Change: extend the allowed range for max loan setting (#8386)Pavel Stupnikov
2020-12-14Add: new economy "frozen" that stops production changes and industry ↵Pavel Stupnikov
closures (#8282)
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-29Codechange: Remove ExpensesTypeByteCharles Pigott
2018-04-30Fix: Spelling errors (#6769)Joan Josep
2013-09-21(svn r25788) -Feature: [Script] Game Scripts can now charge fees and give ↵zuu
money to companies
2011-12-19(svn r23595) -Codechange: add comma after last enum to get a more uniform ↵rubidium
coding style
2011-12-03(svn r23415) -Feature: Infrastructure maintenance costs.michi_cc
2011-12-03(svn r23413) -Add: Company infrastructure counts for canals.michi_cc
2011-12-03(svn r23411) -Add: Company infrastructure counts for rail.michi_cc
2010-10-30(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)alberth
2010-08-08(svn r20411) -Codechange: rename unmovables as quite a lot of them are ↵rubidium
actually movable; e.g. HQ and owned land are pretty movable.
2010-07-31(svn r20262) -Codechange: Remove unused ScoreInfo::id field, and doxyment ↵alberth
the data structures.
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-04-25(svn r19720) -Feature: New base costs for building/clearing canals, ↵terkhen
building/clearing aqueducts and building/clearing locks.
2010-03-23(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT ↵smatz
and DECLARE_ENUM_AS_BIT_SET
2010-02-14(svn r19131) -Doc: Add doxygen comments to some economy variables and constants.alberth
2010-01-29(svn r18945) -Codechange: typoyexo
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
2009-11-24(svn r18284) -Cleanup (r18268, r18283): Replace magic value with enum.frosch
2009-11-24(svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, ↵frosch
building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns. If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
2009-11-24(svn r18268) -Feature: [NewGRF] Make price base multipliers related to ↵frosch
vehicles only apply to the GRF locally, if it defines engines of that type itself.
2009-11-08(svn r18016) -Codechange: Move the arbitrary basecost multiplier offset (8) ↵frosch
to newgrf loading and make the internal state zero-based instead.
2009-11-08(svn r18008) -Codechange: Rename NUM_PRICES to PR_END, and use the Price ↵frosch
enum some more.
2009-11-07(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.frosch
2009-09-06(svn r17433) -Codechange: Store cumulated inflation in savegame and compute ↵frosch
all prices from that instead of storing all prices separately. Note: Savegame conversion computes the inflation from max loan. Prices from modified savegames will get lost. TTO savegames will also behave slightly different. -Change: NewGRF price modifiers now take effect everytime when loading NewGRFs instead of once on gamestart.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-02(svn r17037) -Fix (r17036): 'Polygonal Capabilities' are a core feature of ↵frosch
windows.
2009-08-02(svn r17036) -Codechange: Split price bases from economy.cpp to ↵frosch
table/pricebase.h.
2009-06-29(svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for ↵rubidium
whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others: * cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder) * cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore * industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
2009-05-23(svn r16403) -Codechange: move code related to subsidies to separate filesmatz
2009-05-11(svn r16276) -Fix: huh, old AI? What is that? What about all the time I ↵rubidium
thought there was no AI?
2008-09-15(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by ↵belugas
introducing a daily random industry change. This will allow to perform more changes per month on big maps and less on smaller maps, while not overtaxing the IndustryMonthlyLoop process. Thanks to frosch, for nice code ideas and rewrites
2008-07-07(svn r13679) -Fix [FS#2131]: saving TTD imported games in recession failed ↵rubidium
due to wrong (and unneeded) type conversions in the saveload code.
2008-06-02(svn r13356) -Codechange: Incorrect documentation and variable type for ↵peter1138
inflation rates
2008-02-09(svn r12090) -Codechange : removed a magic number and code style application ↵belugas
on enum ExpensesType
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-09(svn r11793) -Codechange: pass the expense type via the CommandCost instead ↵rubidium
of a global variable. Patch by Noldo (FS#1114).
2007-12-21(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.rubidium
2007-12-21(svn r11677) -Codechange: move price and command related types/functions to ↵rubidium
their respective places.