summaryrefslogtreecommitdiff
path: root/src/economy.cpp
AgeCommit message (Collapse)Author
2007-11-20(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the ↵skidd13
remaining to fit with the naming style
2007-11-19(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the ↵skidd13
remaining to fit with the naming style
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-11-19(svn r11479) -Codechange: Move the BIGMUL functions to the file of their usageskidd13
-Codechange: Rename the BIGMUL functions to the fitting naming style
2007-11-19(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit ↵skidd13
with the coding style
2007-11-11(svn r11410) -Codechange: implement random triggers for industries.rubidium
2007-11-04(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer ↵truelight
a macro (skidd13)
2007-11-04(svn r11374) -Codechange: Give meaning to the magical number that specifies ↵belugas
the color of the text in a DrawString call. Patch heavily based on BiBB's work (FS#1383)
2007-10-21(svn r11331) -Fix: do not misuse CommandCost for overflow safe stuff as ↵rubidium
Money supports that now too.
2007-10-20(svn r11312) -Codechange: implement a overflow safe integer and use that for ↵rubidium
money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
2007-10-14(svn r11258) -Fix [FS#1325]: if a Load Amount callback returns 0, it means ↵rubidium
(according to TTDP's source code, not "the" specs) that it should take the "default" one.
2007-09-27(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14Cglx
2007-09-26(svn r11173) -Codechange: rename some callback enums so they are more uniform.rubidium
2007-09-11(svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of ↵glx
type 'bool' in operation
2007-09-08(svn r11063) -Codechange: make it possible for people to view the loading ↵rubidium
indicators of everyone. Patch by SmatZ.
2007-09-02(svn r11039) -Fix [FS#1191]: underflow that caused overflows in the ↵rubidium
performance rating calculation.
2007-09-01(svn r11031) -Codechange: reduce the amount of duplication of bit counting ↵rubidium
functions. Based on patches by skidd13, SmatZ and Belugas.
2007-09-01(svn r11030) -Revert r11016, Fix [FS#1178]: the way to determine whether a ↵rubidium
station should get goods was not done properly.
2007-08-31(svn r11018) -Fix [FS#1169]: Disallow buying/selling shares in your own ↵rubidium
company or a bankrupted/non-existant company.
2007-08-30(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and ↵rubidium
Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-26(svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted ↵rubidium
cargo too.
2007-08-20(svn r10953) -Fix [FS#1139, FS#1143]: stations would not get a rating when ↵rubidium
there were already two stations with a "more than default" rating as no cargo would be moved to the station to be picked up.
2007-08-16(svn r10921) -Fix [FS#1130] (r10323): the company related news messages ↵rubidium
still thought that companies were described by two parameters instead of one.
2007-08-11(svn r10857) -Fix: feeder-income was broken; substract the feeder-costs from ↵truelight
the vehicle-income, not from the route-income (tnx to RichK for all the info)
2007-08-03(svn r10770) -Codechange: use the pool item class as super class for the ↵rubidium
vehicle struct. -Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
2007-07-25(svn r10692) -Fix (r10691): those good old days that LT_NORMAL was still ↵rubidium
called LT_NORMAL :)
2007-07-25(svn r10691) -Codechange [FS#509]: simplify GetTransportedGoodsIncome to ↵rubidium
make it more obvious and less hidden what actually happens. Based on a patch by rfalke.
2007-07-19(svn r10628) -Fix (r10606,FS#1055): Revert r10606 and fix the plural problem ↵peter1138
another way.
2007-07-16(svn r10587) -Codechange: move the string/dparam related stuff from ↵rubidium
variables.h to strings.h
2007-07-13(svn r10541) -Fix [FS#1028]: cargo payment rates overflow.rubidium
-Fix: cargo payment rates diverge from cost rates making it impossible to make any profit after a certain number of years. Both are solved by stopping the inflation after 170 years; there is absolutely no point in continueing the inflation after that as it only makes the game have overflows at some point that cannot be solved; using larger variables only delays the inevitable.
2007-07-11(svn r10508) -Codechange: allow customizable animation schemes for industries.rubidium
2007-07-08(svn r10477) -Codechange: add some callbacks to customise the acceptance of ↵rubidium
industries.
2007-07-08(svn r10473) -Codechange: make the industry "window", the one that shows ↵rubidium
when you click on an industry, more flexible to allow easier integration with newindustries.
2007-07-07(svn r10460) -Codechange: add some more variables needed for newindustries ↵rubidium
regarding to the creation of the industries.
2007-07-05(svn r10442) -Codechange: implement the industry production callback.rubidium
2007-07-04(svn r10441) -Fix (r10440): something went wrong "porting" fixes from one ↵rubidium
place to another; like compiling the wrong checkout.
2007-07-04(svn r10440) -Fix: CBM_IND defines bits to be set, not bitsets.rubidium
2007-07-04(svn r10439) -Codechange: initial steps for customized industry productions.rubidium
2007-06-30(svn r10397) -Fix [FS#969]: subsidy awarded messages broken due to {COMPANY} ↵peter1138
now taking 1 (not 2) parameters. also remove an unnecessary dereference.
2007-06-25(svn r10332) -Fix [FS#940]: ratings where also shown on drop-off stations.rubidium
2007-06-25(svn r10323) -Codechange: reference company name, number and player ↵peter1138
(president) name by index
2007-06-22(svn r10287) -Fix (r10266): some surprises from that (almost always) ↵rubidium
complaining compiler...
2007-06-22(svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning ↵truelight
vehicle is loading, down meaning vehicle is unloading
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
2007-06-21(svn r10258) -Codechange: as we are now using int64 all over the place, it's ↵rubidium
better to use int64 variables in the string generating too instead of packing them into two int32s. -Fix: some displays of money were wrong.
2007-06-21(svn r10254) -Feature: loading indicator, which shows in % how full a ↵truelight
vehicle is while loading/unloading (TheJosh)
2007-06-21(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to ↵rubidium
place money in some string.
2007-06-21(svn r10246) -Fix (r10297): some forgotten money conversions and truncation ↵rubidium
issues. Thanks to benc for providing the patch.
2007-06-19(svn r10212) -Fix [FS#723]: money overflow bugs in many locations.rubidium
2007-06-18(svn r10210) -Codechange: make all money related variables 64 bits, so ↵rubidium
overflowing them should become a little harder.