log src/economy.cpp @ 17152:c62cecf4dade draft

age author description
Sat, 22 Jan 2011 14:52:20 +0000 rubidium (svn r21890) -Cleanup: remove some unneeded includes draft
Wed, 29 Dec 2010 18:20:19 +0000 rubidium (svn r21658) -Fix [FS#4351]: cargo payment window wasn't properly invalidated when payment changed draft
Thu, 23 Dec 2010 07:17:00 +0000 rubidium (svn r21605) -Fix [FS#4324]: crash due to cargo payments belonging to an non-existing company draft
Tue, 14 Dec 2010 21:33:53 +0000 terkhen (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. draft
Sat, 11 Dec 2010 11:00:42 +0000 rubidium (svn r21462) -Codechange [FS#3689]: don't do unnecessary cargo reservations in while loading/unloading vehicles. It is only needed when at least one vehicle is loading; all other times it is a waste of effort. Roughly halves the time it takes to perform loading/unloading of vehicles (fonsinchen) draft
Sat, 13 Nov 2010 09:45:20 +0000 alberth (svn r21156) -Codechange: Introduce EconomyIsInRecession(). draft
Thu, 11 Nov 2010 10:34:44 +0000 rubidium (svn r21145) -Fix: station list wasn't updated when a new cargo got a rating draft
Sat, 06 Nov 2010 13:05:11 +0000 terkhen (svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache. draft
Sat, 06 Nov 2010 13:03:17 +0000 terkhen (svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time. draft
Sat, 06 Nov 2010 12:53:31 +0000 terkhen (svn r21097) -Codechange: Unify cached max speed for all vehicle types. draft
Sat, 06 Nov 2010 12:47:12 +0000 terkhen (svn r21095) -Codechange: Use a function to convert aircraft speed to old units. draft
Sun, 17 Oct 2010 17:37:45 +0000 rubidium (svn r20970) -Add: company change notification to remote admins (dihedral) draft
Fri, 01 Oct 2010 16:42:28 +0000 smatz (svn r20860) -Cleanup: remove some unused functions and variables draft
Sat, 25 Sep 2010 12:48:33 +0000 michi_cc (svn r20843) -Fix [FS#2534] (r20506): Make sure (gradual) loading is properly terminated for consists with multiple cargo types. Don't stop loading if the timetabled wait is not over yet. (Steve-N) draft
Thu, 26 Aug 2010 22:01:16 +0000 rubidium (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers draft
Thu, 26 Aug 2010 15:31:40 +0000 rubidium (svn r20623) -Codechange: unify the storing of animation related information draft
Sun, 15 Aug 2010 22:37:30 +0000 michi_cc (svn r20506) -Change: Vehicles will now stop loading after a load cycle that loaded less than possible, unless it's a full load order. This should improve behaviour with gradual loading and cargo continuously trickling in. draft
Sun, 08 Aug 2010 10:59:30 +0000 rubidium (svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable. draft
Sat, 07 Aug 2010 20:11:27 +0000 yexo (svn r20396) -Codechange: introduce a helper function to test whether an industry temporarily refues to accept some cargo draft
Fri, 06 Aug 2010 20:28:16 +0000 alberth (svn r20393) -Fix [FS#3993]: Prevent taking over competitors when you'd get too many vehicles. draft
Fri, 06 Aug 2010 20:26:01 +0000 alberth (svn r20392) -Fix [FS#3993]: Prevent buying bankrupt companies when you'd get too many vehicles. draft
Tue, 03 Aug 2010 12:36:40 +0000 rubidium (svn r20341) -Codechange: pass the tile of the HQ instead of the company to UpdateCompanyHQ draft
Mon, 02 Aug 2010 20:47:27 +0000 alberth (svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition. draft
Mon, 02 Aug 2010 20:37:32 +0000 alberth (svn r20319) -Codechange: Align comments, add indent to a function call. draft
Mon, 02 Aug 2010 20:32:39 +0000 alberth (svn r20318) -Doc: Doxygen additions. draft
Mon, 02 Aug 2010 20:19:10 +0000 alberth (svn r20317) -Codechange: Move variable declaration to their first use. draft
Sun, 01 Aug 2010 19:44:49 +0000 frosch (svn r20286) -Codechange: Unify end of doxygen comments. draft
Sun, 01 Aug 2010 19:22:34 +0000 frosch (svn r20283) -Codechange: Unify start of doygen comments. draft
Sun, 01 Aug 2010 17:45:53 +0000 alberth (svn r20279) -Doc: Doxygen additions/improvements. draft
Sat, 31 Jul 2010 21:02:56 +0000 alberth (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. draft
Sat, 31 Jul 2010 19:45:48 +0000 alberth (svn r20262) -Codechange: Remove unused ScoreInfo::id field, and doxyment the data structures. draft
Sat, 24 Jul 2010 10:14:39 +0000 alberth (svn r20211) -Codechange: Indented code should have curly braces around it. draft
Fri, 16 Jul 2010 17:45:34 +0000 rubidium (svn r20164) -Fix [FS#3870]: inconsistencies w.r.t. to km/h vs km-ish/h as "base" unit for aircraft speeds draft
Sat, 05 Jun 2010 12:16:12 +0000 frosch (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. draft
Mon, 31 May 2010 20:22:57 +0000 frosch (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. draft
Sun, 18 Apr 2010 14:56:05 +0000 frosch (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. draft
Sat, 17 Apr 2010 13:45:48 +0000 frosch (svn r19655) -Codechange: Reduce usage magic p1 parameter. draft
Sat, 17 Apr 2010 11:39:46 +0000 smatz (svn r19651) -Fix [FS#3745]: when a company is sold, move connected clients to spectators draft
Mon, 12 Apr 2010 14:12:47 +0000 smatz (svn r19614) -Codechange: "it's" => "its" where appropriate draft
Sat, 27 Feb 2010 16:27:28 +0000 rubidium (svn r19277) -Fix [FS#3646]: [NewGRF] Ensure prices can't be set to zero. Zero prices break a lot of the internal logic to determine whether something has been done. draft
Mon, 22 Feb 2010 14:16:57 +0000 yexo (svn r19197) -Codechange: introduce animation callbacks for airport tiles draft
Sun, 24 Jan 2010 11:05:26 +0000 rubidium (svn r18908) -Fix [FS#3561]: on bankruptcy the company value did include the loan and as such the value at which you bought the company was too low draft
Fri, 15 Jan 2010 16:41:15 +0000 rubidium (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header draft
Sat, 09 Jan 2010 14:43:08 +0000 rubidium (svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way draft
Mon, 04 Jan 2010 18:21:07 +0000 rubidium (svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry. draft
Sun, 03 Jan 2010 21:29:20 +0000 rubidium (svn r18703) -Feature-ish: allow virtually paying a percentage of the leg profit in feeder chains. This to give the user a better chance to get a feeder system without "losses". draft
Fri, 01 Jan 2010 18:45:40 +0000 rubidium (svn r18683) -Fix: it's not an other draft
Sat, 19 Dec 2009 17:14:35 +0000 frosch (svn r18540) -Codechange: resulting in better name for 'result'. draft
Sat, 19 Dec 2009 15:51:55 +0000 frosch (svn r18537) -Fix (r17436): Also do not account cargo in statistics, if it was not accepted. draft
Sat, 28 Nov 2009 20:35:25 +0000 rubidium (svn r18330) -Cleanup: remove some unneeded includes draft
Tue, 24 Nov 2009 13:15:58 +0000 frosch (svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself. draft
Tue, 24 Nov 2009 13:12:34 +0000 frosch (svn r18266) -Codechange: Add a function to compute prices from price base and cost factor and use it consistently for vehicle purchase, running cost, and refit cost. draft
Sun, 08 Nov 2009 18:04:53 +0000 frosch (svn r18016) -Codechange: Move the arbitrary basecost multiplier offset (8) to newgrf loading and make the internal state zero-based instead. draft
Sun, 08 Nov 2009 12:23:02 +0000 frosch (svn r18008) -Codechange: Rename NUM_PRICES to PR_END, and use the Price enum some more. draft
Sat, 07 Nov 2009 22:47:54 +0000 frosch (svn r18005) -Codechange: Convert the Prices struct into an array and an enum. draft
Thu, 05 Nov 2009 19:46:17 +0000 frosch (svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h draft
Tue, 20 Oct 2009 22:06:33 +0000 rubidium (svn r17834) -Fix [FS#3274] (r17808): you got paid a bit too much... ofcourse the index of the source station generally doesn't equal the location of said station. draft
Sun, 18 Oct 2009 17:53:34 +0000 rubidium (svn r17808) -Codechange: remove write 'access' from all of CargoPacket's variables draft
Sun, 18 Oct 2009 14:28:26 +0000 rubidium (svn r17800) -Codechange: first steps into making CargoList a template draft
Tue, 06 Oct 2009 19:17:07 +0000 frosch (svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present. draft
Tue, 06 Oct 2009 17:23:15 +0000 rubidium (svn r17720) -Codechange: guard the CargoPacket variables that are cached in CargoLists so they cannot be written from outside the CargoList class (based on patch by fonsinchen) draft
Sun, 20 Sep 2009 18:52:12 +0000 smatz (svn r17592) -Fix [FS#3212](r17436): force all cargo being accepted when industry tiles accept it but industry itself doesn't draft
Sun, 20 Sep 2009 17:44:33 +0000 smatz (svn r17589) -Codechange: rename town_acc to always_accepted draft
Sat, 19 Sep 2009 15:17:47 +0000 rubidium (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary draft
Sat, 19 Sep 2009 09:51:14 +0000 rubidium (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos draft
Fri, 18 Sep 2009 14:23:58 +0000 rubidium (svn r17567) -Fix: some doxygen warnings draft
Tue, 15 Sep 2009 20:58:44 +0000 rubidium (svn r17552) -Codechange: rename load_unload_time_rem to something more generic as it's used for more than just load/unload. Also add some documentation about where it is used. draft
Tue, 15 Sep 2009 20:13:47 +0000 rubidium (svn r17551) -Fix [FS#3201] (r17222): vehicles waiting for their time table didn't load anymore after their initial load was completed draft
Tue, 15 Sep 2009 19:56:41 +0000 frosch (svn r17550) -Fix (r8973): Aircraft are good enough, don't make them even better. draft
Tue, 15 Sep 2009 17:23:24 +0000 rubidium (svn r17546) -Fix (r9617): sign extending of profit calculation didn't work draft
Mon, 14 Sep 2009 22:09:50 +0000 yexo (svn r17542) -Fix: don't access variables in the company struct after it has been deleted draft
Mon, 14 Sep 2009 12:22:57 +0000 rubidium (svn r17534) -Codechange: unify the naming of callback masks/flags draft
Sun, 13 Sep 2009 19:15:59 +0000 frosch (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. draft
Wed, 09 Sep 2009 08:22:21 +0000 rubidium (svn r17485) -Change [FS2459]: make the performance ratings harder to exploit; only count profitable vehicles and recently serviced stations. draft
Mon, 07 Sep 2009 10:00:14 +0000 rubidium (svn r17449) -Fix (r17436): MSVC compile warning about comparing signed and unsigned values draft
Mon, 07 Sep 2009 07:39:08 +0000 smatz (svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore draft
Sun, 06 Sep 2009 22:05:53 +0000 smatz (svn r17437) -Change: don't accept cargo produced in the same industry (generalise and improve the check used only for valuables) draft
Sun, 06 Sep 2009 21:59:20 +0000 smatz (svn r17436) -Change: pay only for cargo actually delivered, not for all cargo unloaded at station (can differ with 'stockpiling' industries) draft
Sun, 06 Sep 2009 20:36:17 +0000 frosch (svn r17435) -Codechange: Move _cargo_payment_rates[] to CargoSpec::current_payment. draft
Sun, 06 Sep 2009 18:53:57 +0000 frosch (svn r17433) -Codechange: Store cumulated inflation in savegame and compute all prices from that instead of storing all prices separately. draft
Sat, 05 Sep 2009 19:02:34 +0000 smatz (svn r17426) -Fix (r1): economy recession would never end when economy is set to Steady while in recession draft
Fri, 04 Sep 2009 23:02:52 +0000 smatz (svn r17420) -Codechange: replace assert() by assert_compile() where possible draft
Tue, 01 Sep 2009 12:57:04 +0000 rubidium (svn r17345) -Fix [FS#2769]: one wasn't offered to take over bankrupt companies anymore; caused by the introduction NoAI, although NewAI had the same problem too. draft
Tue, 01 Sep 2009 12:28:46 +0000 rubidium (svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster. draft
Tue, 01 Sep 2009 12:17:02 +0000 rubidium (svn r17342) -Fix: reset bankruptcy checks when bankruptcy has been averted and don't set an unused timeout with a magic number draft
Tue, 01 Sep 2009 12:16:01 +0000 rubidium (svn r17341) -Fix: memory leak when trying to bankrupt the local company draft
Sun, 30 Aug 2009 11:47:41 +0000 smatz (svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile() draft
Fri, 21 Aug 2009 20:21:05 +0000 rubidium (svn r17248) -Fix: add GPL license notice where appropriate draft
Wed, 19 Aug 2009 15:27:55 +0000 rubidium (svn r17222) -Fix [FS#3129, FS#3130]: with time tables vehicles would stay in the 'loading' state after they have finished loading draft
Sat, 08 Aug 2009 20:53:36 +0000 smatz (svn r17124) -Codechange: store subsidies in a pool (instead of an array) draft
Sat, 08 Aug 2009 16:42:55 +0000 smatz (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 draft
Fri, 07 Aug 2009 22:23:34 +0000 smatz (svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed draft
Thu, 06 Aug 2009 13:51:48 +0000 smatz (svn r17086) -Cleanup (r16654): remove code used only for debugging draft
Wed, 05 Aug 2009 17:59:21 +0000 rubidium (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives draft
Mon, 03 Aug 2009 20:02:25 +0000 belugas (svn r17058) -Codechange: magic numbers removal. draft
Sun, 02 Aug 2009 13:56:14 +0000 frosch (svn r17037) -Fix (r17036): 'Polygonal Capabilities' are a core feature of windows. draft
Sun, 02 Aug 2009 12:34:26 +0000 frosch (svn r17036) -Codechange: Split price bases from economy.cpp to table/pricebase.h. draft
Fri, 24 Jul 2009 00:08:48 +0000 rubidium (svn r16933) -Fix [FS#3054] (r16694): vehicles would wait "very long" when they had nothing to unload and gradual loading was disabled. draft
Wed, 22 Jul 2009 10:18:19 +0000 rubidium (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h draft
Tue, 21 Jul 2009 17:14:05 +0000 rubidium (svn r16901) -Fix [FS#3046] (rpbs): when marking trains stuck don't reset the unload counter/stuck when the vehicle is unloading. It'll be automatically reset once the vehicle wants to leave the station draft
Sat, 18 Jul 2009 19:54:35 +0000 smatz (svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age draft
Thu, 16 Jul 2009 20:40:06 +0000 smatz (svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all valid CargoSpecs draft
Thu, 16 Jul 2009 19:00:13 +0000 smatz (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() draft
Mon, 13 Jul 2009 16:37:27 +0000 smatz (svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft draft
Mon, 13 Jul 2009 16:35:22 +0000 smatz (svn r16813) -Codechange: make IsEngineCountable() member of Vehicle draft
Sat, 04 Jul 2009 11:26:57 +0000 rubidium (svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'. draft
Wed, 01 Jul 2009 18:45:05 +0000 smatz (svn r16714) -Codechange: use pool-like accessors for Subsidy draft
Wed, 01 Jul 2009 17:43:26 +0000 smatz (svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over all subsidies draft
Wed, 01 Jul 2009 09:50:52 +0000 rubidium (svn r16707) -Fix [FS#3007] (r16693): under some circumstances vehicles would skip loading as they thought nothing could be unloaded or loaded. draft
Wed, 01 Jul 2009 09:45:30 +0000 rubidium (svn r16706) -Fix (r16694): acquiring a subsidy resulted in an assertion. draft
Mon, 29 Jun 2009 19:55:36 +0000 rubidium (svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others: draft
Mon, 29 Jun 2009 19:17:23 +0000 rubidium (svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit. draft
Sun, 28 Jun 2009 15:12:59 +0000 rubidium (svn r16683) -Codechange: move the cargo payment handling to a seperate class. Based on ideas of fonso/fonsinchen. draft
Sun, 28 Jun 2009 14:36:25 +0000 rubidium (svn r16682) -Codechange: make (static) industry list used to trigger the industries' production compile unit static instead of passing it around as pointer draft
Sun, 28 Jun 2009 14:33:10 +0000 rubidium (svn r16681) -Codechange: only resolve the company once for vehicle payment instead of each time a cargo packet is delivered draft
Sun, 28 Jun 2009 14:29:58 +0000 rubidium (svn r16680) -Codechange: don't go through all the station unloading stuff when there is no vehicle at the station draft
Thu, 25 Jun 2009 15:42:03 +0000 smatz (svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made draft
Wed, 24 Jun 2009 17:39:54 +0000 smatz (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() draft
Wed, 10 Jun 2009 22:05:01 +0000 smatz (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible draft
Sat, 06 Jun 2009 16:54:22 +0000 smatz (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check draft