summaryrefslogtreecommitdiff
path: root/src/economy.cpp
AgeCommit message (Collapse)Author
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-05-27(svn r16453) -Fix: Move some code around so a company is no longer used ↵yexo
after deleting it
2009-05-24(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced ↵frosch
vehicles/stations/industries are deleted.
2009-05-23(svn r16407) -Fix [FS#2913]: set CargoPacket::source to INVALID_STATION when ↵smatz
source station is deleted
2009-05-23(svn r16403) -Codechange: move code related to subsidies to separate filesmatz
2009-05-22(svn r16393) -Codechange: move VehicleRail to Train.rubidium
2009-05-19(svn r16360) -Codechange: don't use _network_playas as a 'second' ↵rubidium
_local_company, but only as a storage location for the company you want to join in MP.
2009-05-18(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of ↵smatz
PoolItem::IsValidID() and PoolItem::Get()
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-04-21(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had ↵rubidium
this ID' from 'some' strings and replace the string name with something more sensible.
2009-03-15(svn r15726) -Codechange: unify coding style for const pointerssmatz
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
2009-02-26(svn r15588) -Fix: change owner of waypoints and deleted stations when ↵smatz
merging companies or when a company benkrupts
2009-02-25(svn r15574) -Fix [FS#2680]: force unload not working when trying to force ↵rubidium
unload at the station where you received the cargo
2009-02-21(svn r15547) -Codechange: Eliminate all == and != comparisons between ↵frosch
v->cargo_cap and v->cargo.Count() to improve behaviour wrt. broken/incompatible grfs.
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-07(svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, ↵smatz
convert the groups correctly
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz
2009-01-04(svn r14825) -Fix: pay the correct amount of interest instead of a few ↵rubidium
percent too little a year
2009-01-03(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid ↵smatz
depots, industries, towns and waypoints
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-12-26(svn r14753) -Fix (r1): after buying a company, one could have more vehicles ↵smatz
with the same UnitID
2008-12-26(svn r14750) -Fix [FS#1993]: in an MP game in SP mode no company would go ↵rubidium
bankrupt. Furthermore companies that passed the "bankrupt" period (4 quarters) wouldn't go bankrupt when loading the game back in MP. Now any company that is in MP or not "currently controlled by the player" in SP will bankrupt.
2008-12-26(svn r14748) -Codechange: unduplicate window updating when deleting vehicles.rubidium
2008-12-26(svn r14747) -Codechange: remove DeleteVehicleChain in favour of the vehicle ↵rubidium
destructor as that was already doing the same for a few vehicle types.
2008-12-24(svn r14734) -Codechange: type of bankrupt_asked is CompanyMask, not bytesmatz
2008-12-20(svn r14705) -Fix [FS#2460]: First transfer the whole load of a vehicle ↵frosch
chain to industries before triggering any processing. This reduces callback usage and resolves critical rounding errors when using input-cargo-multipliers instead of production callbacks.
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