summaryrefslogtreecommitdiff
path: root/src/economy.cpp
AgeCommit message (Collapse)Author
2008-12-13(svn r14672) -Fix [FS#2444]: Property 7 and callback 12 were broken for ↵frosch
aircraft. Now callback 12 is properly called also for 'mail'. If the callback is not used, 'mail' uses 1/4 of property 7 (rounded up).
2008-12-13(svn r14670) -Codechange: use better readable (I hope) and branchless (for ↵smatz
some archs/compilers) code for cargo value computation
2008-10-25(svn r14536) -Fix (r14530): Do not expect uints to become negative.frosch
2008-10-25(svn r14530) -Fix [FS#2138]: Do not deliver cargo to industries not inside ↵frosch
station catchment area.
2008-10-14(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)rubidium
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-16(svn r14348) -Fix (r1667): signs were not updated on company bankrupcy/sell, ↵smatz
they have colour of invalid player
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-09-06(svn r14254) -Codechange: Code style and breathing roombelugas
2008-08-20(svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.belugas
Provided by ln I've added a little fix on currency.cpp too, why not :)
2008-07-26(svn r13836) -Fix [FS#2074]: Automatically recalculate inflation if NewGRFs ↵peter1138
are changed and cargo types are added, so that cargo payment rates are correct.
2008-07-18(svn r13731) -Codechange: make a pool of the array of players.rubidium
2008-07-18(svn r13730) -Fix: make a copy of the names for news messages about the ↵rubidium
deletion of companies as the removal of a company could lead to wrong names in the news messages.
2008-07-17(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line ↵rubidium
with all other structs/classes that are in a pool.
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-27(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the ↵skidd13
equivalent constant
2008-06-02(svn r13356) -Codechange: Incorrect documentation and variable type for ↵peter1138
inflation rates
2008-05-30(svn r13343) -Codechange: reorder/move variable/functions in the network ↵rubidium
headers so that nothing from the network directory needs to include basically all network headers.
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-26(svn r13256) -Codechange: merge the OPTS and PATS chuncks.rubidium
-Codechange: split the diff_custom variable. -Feature: allow changing some of the diff_custom variables via the console in network games.
2008-05-25(svn r13255) -Codechange: move _opt to _settings.rubidium
2008-05-25(svn r13251) -Codechange: rename _patches to _settings as that is more logic.rubidium
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-18(svn r13165) -Codechange: replace some ↵rubidium
RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
2008-05-17(svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp.rubidium
2008-05-17(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so ↵rubidium
window_gui.h only needs to be included in *_gui.cpp.
2008-05-16(svn r13123) -Codechange: passing the bankrupt type via data_b is not needed ↵rubidium
anymore. Patch by Cirdan.
2008-05-15(svn r13102) -Codechange: make a class of the NewsWindow.rubidium
2008-05-15(svn r13100) -Codechange: reduce the amount of parameters passed via ↵rubidium
AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
2008-05-13(svn r13065) -Codechange: remove the need for the news string callbacks. ↵rubidium
Patch by Cirdan.
2008-05-08(svn r13021) -Codechange: free data_b for other uses when it is not used to ↵rubidium
store a second tile to skip to (in news messages). Patch by cirdan.
2008-05-06(svn r12977) -Codechange: remove quite some redundant (duplicate) function ↵rubidium
declarations.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-26(svn r12906) -Fix: vehicle groups, engine replacement rules and ↵smatz
player/company names were not properly reset/freed after bankrupt (before new player start)
2008-04-24(svn r12862) -Codechange: reduce code duplication for VehicleType -> ↵smatz
WindowClass lookup
2008-04-21(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does ↵rubidium
it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-19(svn r12798) -Feature: Add some support for NewGRF station animation. ↵peter1138
(Thanks to mart3p for samples and fixes)
2008-04-10(svn r12652) -Codechange: rework the order GUI a little more to make it a ↵rubidium
little more clear that 'transfer' is just an unload type.
2008-04-10(svn r12650) -Feature: ability to force a vehicle to not load at a station.rubidium
-Feature: ability to force a vehicle to not unload at a station.
2008-04-09(svn r12640) -Codechange: let GetLoadType make a difference between full ↵rubidium
load and full load any based on the patch setting instead of using the patch setting directly.
2008-04-07(svn r12617) -Codechange: add type safety to the Order's load and unload types.rubidium
2008-04-06(svn r12593) -Codechange: hide Order's flags in most of the code.rubidium
2008-04-05(svn r12585) -Fix (r12584): assumption that assertions were enabled during ↵rubidium
compilation/testing was flawed.
2008-04-04(svn r12560) -Cleanup: town_cmd.cpp and header files - variable scope and a ↵smatz
bit of coding style
2008-03-31(svn r12490) -Codechange: rename engine.h to engine_func.h and remove ↵rubidium
unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-03-31(svn r12489) -Codechange: split station.h into station_base.h and ↵rubidium
station_func.h.
2008-03-28(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.rubidium
2008-02-21(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road ↵peter1138
vehicles' running cost, and show running cost of wagons if they have it.
2008-02-21(svn r12207) -Change: rail running costs are engine class, not rail typepeter1138
2008-02-20(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the ↵smatz
train had negative income -Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form