smatz
6572bce9c1
(svn r17426) -Fix (r1): economy recession would never end when economy is set to Steady while in recession
2009-09-05 19:02:34 +00:00
smatz
dc73d5432d
(svn r17420) -Codechange: replace assert() by assert_compile() where possible
2009-09-04 23:02:52 +00:00
rubidium
62e990823d
(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.
2009-09-01 12:57:04 +00:00
rubidium
c1fe2ce4bc
(svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster.
2009-09-01 12:28:46 +00:00
rubidium
94867f3052
(svn r17342) -Fix: reset bankruptcy checks when bankruptcy has been averted and don't set an unused timeout with a magic number
2009-09-01 12:17:02 +00:00
rubidium
846cd79ada
(svn r17341) -Fix: memory leak when trying to bankrupt the local company
2009-09-01 12:16:01 +00:00
smatz
09e1ecc8ac
(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
2009-08-30 11:47:41 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
2612f46a20
(svn r17222) -Fix [FS#3129, FS#3130]: with time tables vehicles would stay in the 'loading' state after they have finished loading
2009-08-19 15:27:55 +00:00
smatz
d59b687f65
(svn r17124) -Codechange: store subsidies in a pool (instead of an array)
2009-08-08 20:53:36 +00:00
smatz
0502a6df42
(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
...
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08 16:42:55 +00:00
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
2009-08-07 22:23:34 +00:00
smatz
fcae906575
(svn r17086) -Cleanup (r16654): remove code used only for debugging
2009-08-06 13:51:48 +00:00
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
belugas
00338562b9
(svn r17058) -Codechange: magic numbers removal.
...
Two values used intead of just one, as it gives more possibilities to those who dare...
2009-08-03 20:02:25 +00:00
frosch
29d4316064
(svn r17037) -Fix (r17036): 'Polygonal Capabilities' are a core feature of windows.
2009-08-02 13:56:14 +00:00
frosch
8b50754b19
(svn r17036) -Codechange: Split price bases from economy.cpp to table/pricebase.h.
2009-08-02 12:34:26 +00:00
rubidium
fb36ebd9dd
(svn r16933) -Fix [FS#3054] (r16694): vehicles would wait "very long" when they had nothing to unload and gradual loading was disabled.
2009-07-24 00:08:48 +00:00
rubidium
6435dc89fe
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
2009-07-22 10:18:19 +00:00
rubidium
84dec43208
(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
2009-07-21 17:14:05 +00:00
smatz
3564579dc4
(svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age
2009-07-18 19:54:35 +00:00
smatz
cb13cf2543
(svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all valid CargoSpecs
2009-07-16 20:40:06 +00:00
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19:00:13 +00:00
smatz
64de470917
(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft
2009-07-13 16:37:27 +00:00
smatz
98b8479f56
(svn r16813) -Codechange: make IsEngineCountable() member of Vehicle
2009-07-13 16:35:22 +00:00
rubidium
c5a44ce99e
(svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'.
2009-07-04 11:26:57 +00:00
smatz
93557ba4e9
(svn r16714) -Codechange: use pool-like accessors for Subsidy
2009-07-01 18:45:05 +00:00
smatz
d04750ff87
(svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over all subsidies
2009-07-01 17:43:26 +00:00
rubidium
ff4326d6a3
(svn r16707) -Fix [FS#3007] (r16693): under some circumstances vehicles would skip loading as they thought nothing could be unloaded or loaded.
2009-07-01 09:50:52 +00:00
rubidium
e189037662
(svn r16706) -Fix (r16694): acquiring a subsidy resulted in an assertion.
2009-07-01 09:45:30 +00:00
rubidium
4f99508114
(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:
...
* 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-06-29 19:55:36 +00:00
rubidium
025cf4b546
(svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit.
2009-06-29 19:17:23 +00:00
rubidium
2c478d1b6d
(svn r16683) -Codechange: move the cargo payment handling to a seperate class. Based on ideas of fonso/fonsinchen.
2009-06-28 15:12:59 +00:00
rubidium
e6ac18cd57
(svn r16682) -Codechange: make (static) industry list used to trigger the industries' production compile unit static instead of passing it around as pointer
2009-06-28 14:36:25 +00:00
rubidium
7f117cf256
(svn r16681) -Codechange: only resolve the company once for vehicle payment instead of each time a cargo packet is delivered
2009-06-28 14:33:10 +00:00
rubidium
5140f4261b
(svn r16680) -Codechange: don't go through all the station unloading stuff when there is no vehicle at the station
2009-06-28 14:29:58 +00:00
smatz
72bee4ad2d
(svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made
2009-06-25 15:42:03 +00:00
smatz
f6a4d61cca
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
2009-06-24 17:39:54 +00:00
smatz
a2567c84a0
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
2009-06-10 22:05:01 +00:00
smatz
af85994f7f
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-06-06 16:54:22 +00:00
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
yexo
e7a087b08b
(svn r16453) -Fix: Move some code around so a company is no longer used after deleting it
2009-05-27 23:37:47 +00:00
frosch
eeb3f75cfe
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
2009-05-24 16:52:42 +00:00
smatz
bebab3cd79
(svn r16407) -Fix [FS#2913]: set CargoPacket::source to INVALID_STATION when source station is deleted
2009-05-23 19:43:09 +00:00
smatz
1eb48cdded
(svn r16403) -Codechange: move code related to subsidies to separate file
2009-05-23 15:46:00 +00:00
rubidium
4c0542c17f
(svn r16393) -Codechange: move VehicleRail to Train.
2009-05-22 22:55:41 +00:00
rubidium
789999ecf3
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
2009-05-19 21:20:14 +00:00
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
2009-05-18 16:21:28 +00:00
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
2009-05-17 01:00:56 +00:00
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00