peter1138
f538179878
Feature: Multi-tile docks and docking points.
2019-06-30 16:46:32 +02:00
Charles Pigott
931d32f414
Codechange: Remove RailTypeByte type
2019-04-29 17:40:22 +01:00
Michael Lutz
4e85ccf3c0
Codechange: Replace SmallStackSafeStackAlloc with std::array.
...
The only port that ever used it to make heap allocations instead of stack ones was the NDS port, which got thrown out some time ago.
2019-04-15 22:52:50 +01:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Henry Wilson
c01a2e2a81
Codechange: Removed SmallVector completely
2019-03-26 20:15:57 +00:00
Henry Wilson
a0f36a50e6
Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back()
2019-03-26 20:15:57 +00:00
PeterN
42b43c9983
Change: Available railtypes is always calculated on load, so no need to load value for old savegames ( #6782 )
2018-05-19 22:31:46 +01:00
Michael Lutz
7dd6027194
Codechange: Use a SmallVec for the animated tile list instead of replicating most of the logic.
2018-04-15 20:49:29 +02:00
frosch
117e73751c
(svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites.
2016-10-16 14:59:44 +00:00
frosch
d2393b4f6c
(svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq.
2016-10-16 14:57:56 +00:00
rubidium
982f5a6aa2
(svn r26878) -Change: move m6 to TileExtended to keep Tile 8 bytes and thus better alignable
2014-09-21 11:23:33 +00:00
rubidium
04e2324b8f
(svn r26873) -Change: split type_height into a type and height array (ic111)
2014-09-21 11:14:58 +00:00
rubidium
9e0f4b3847
(svn r26864) -Codechange: bring a bit more OO into the disaster vehicles
2014-09-20 15:46:44 +00:00
rubidium
89c25b955e
(svn r26580) -Codechange: s/GES_PICKUP/GES_RATING/ (it has nothing to do with actual pickup), s/acceptance_pickup/status/ (the enum isn't called GoodEntryStatus for a reason; it's not only acceptance and pickup anymore)
2014-05-11 18:02:11 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
f9c9ff6ec3
(svn r25508) -Change: split unit localisation choice into a choice per type of unit, and move it to the advanced settings
...
-Feature [FS#5482]: have tractive effort in imperial (lbf) and metric (kgf) units
-Feature: have weights and volumes in imperial units (short tons, gallons)
2013-06-29 09:47:18 +00:00
fonsinchen
04e3eb6fab
(svn r25361) -Feature: distribute cargo according to plan given by linkgraph
2013-06-09 13:03:48 +00:00
rubidium
3947453277
(svn r25259) -Codechange: track capacities and usage of links
2013-05-19 14:22:04 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
0e4b212c45
(svn r24810) -Fix: Make engine preview offers more robust wrt. changes in the company ranking.
2012-12-09 16:55:03 +00:00
frosch
d1ab0f03bc
(svn r24790) -Remove: Classic difficulty profiles.
2012-12-05 19:36:41 +00:00
frosch
883f9bec9b
(svn r24718) -Codechange: Rename GoodsEntry::days_since_pickup to GoodsEntry::time_since_pickup.
2012-11-12 21:59:02 +00:00
planetmaker
f2e94237fc
(svn r24619) -Change: Check for bankruptcy on a monthly basis (ZxBioHazardZx)
2012-10-20 22:05:26 +00:00
rubidium
70c7fbd90e
(svn r23826) -Fix [FS#4972]: the detailed performance rating window showed the cargo count of the current quarter instead of the last quarter like the tooltip says
2012-01-20 20:18:19 +00:00
truebrain
f906ebd2a5
(svn r23300) -Add: show on the GUI when a town grows and make a general framework to store goals of a town
2011-11-23 16:07:14 +00:00
truebrain
229e572663
(svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen)
2011-11-23 16:05:19 +00:00
michi_cc
6548ec6e9e
(svn r23233) -Codechange: Refactor maximum and actually transported cargo amount of towns into a reusable struct.
2011-11-15 20:47:53 +00:00
rubidium
f01b3e2721
(svn r23104) -Codechange: prepare the vehicle/sign z for some further changes to reduce casting
2011-11-04 11:09:06 +00:00
rubidium
47c5d30b5d
(svn r23084) -Codechange: get rid of a redundant variable
2011-11-03 22:49:03 +00:00
yexo
40d5419cd2
(svn r22920) -Cleanup: replace two very old town variables taht were rarely used by small functions that compute there value on-the-fly when necessary
2011-09-11 11:47:18 +00:00
michi_cc
08b7981f37
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
terkhen
5bb79b1f46
(svn r22540) -Codechange: Rename AcceptancePickup to GoodsEntryStatus.
2011-06-04 21:17:07 +00:00
smatz
92cabe0c9f
(svn r22487) -Fix (r15216)[FS#4622]: engine IDs for coal and mail wagons were swapped
2011-05-22 19:18:28 +00:00
planetmaker
43c8cd1d5e
(svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added
2011-05-18 12:19:58 +00:00
alberth
28092366ec
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
2011-05-14 18:35:40 +00:00
smatz
69789f3008
(svn r22042) -Fix: when loading a TTO/TTD savegame, verify we can allocate a CargoPacket before actually trying to do so
2011-02-09 18:56:40 +00:00
alberth
4364cec392
(svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density.
2011-02-06 18:26:50 +00:00
smatz
b15719bbd2
(svn r21939) -Fix (r16357): the check for valid depot wasn't strict enough
2011-02-02 14:50:57 +00:00
frosch
a97d52a29a
(svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
...
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
2011-01-31 20:44:15 +00:00
rubidium
67a5cd0b18
(svn r21932) -Document: some tidbits related to vehicles
2011-01-31 20:27:33 +00:00
terkhen
679cd3c21b
(svn r21803) -Cleanup: Remove unnecessary semicolons.
2011-01-15 15:36:58 +00:00
smatz
2709454040
(svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day
2011-01-15 14:20:34 +00:00
smatz
1b3e2309df
(svn r21799) -Fix: further variables need to be reset when we loaded a TTDPatch savegame in the past
2011-01-15 00:10:16 +00:00
smatz
804542b3f3
(svn r21798) -Fix: loading a TTO savegame failed after loading a TTDP savegame with vehicle multiplier bigger than 1
2011-01-14 22:23:09 +00:00
rubidium
080a941eda
(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames
2011-01-14 21:54:37 +00:00
peter1138
1b61d234a1
(svn r21710) -Fix (r8128): Update oldloader for change in vehicle cur_image size.
2011-01-04 12:22:27 +00:00
terkhen
6a38925ca3
(svn r21123) -Codechange: Remove max_speed from the Vehicle class.
2010-11-09 17:43:05 +00:00
rubidium
97dbb1f27d
(svn r20819) -Fix [FS#3714]: be a bit more "lenient" w.r.t. invalid savegames; don't crash on saveload related NOT_REACHEDs, just show the user an error that the savegame is corrupted
2010-09-16 22:06:36 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
3da3d131c6
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
2010-08-08 10:59:30 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
rubidium
24df43633c
(svn r20247) -Fix: when it is known the loading an old savegame is going to fail, bail out immediately (using an exception) instead of going on until e.g. the expected number of byte is read
2010-07-30 22:57:46 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
3bb544e54d
(svn r20184) -Codechange: make _trees_tick_ctr and _disaster_delay not use VARDEF and put them in a more logical location
2010-07-19 15:51:06 +00:00
rubidium
93ff7d78e1
(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named
2010-05-12 19:21:00 +00:00
frosch
116a5f56a4
(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
2010-03-20 14:30:16 +00:00
yexo
c4a88ce022
(svn r19455) -Codechange: split all airport information in Station to a seperate class
2010-03-18 21:02:20 +00:00
terkhen
4eb6e3f060
(svn r19392) -Codechange: Increase the maximum size of a TileArea.
2010-03-12 19:38:00 +00:00
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
2010-02-25 20:06:11 +00:00
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
2010-02-25 20:05:31 +00:00
yexo
698737f485
(svn r19198) -Codechange: store the size of stations in savegames
2010-02-22 14:17:07 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
e4af35d316
(svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way
2010-01-09 14:43:08 +00:00
rubidium
87466a4ed0
(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.
2010-01-04 18:21:07 +00:00
rubidium
fac2f8ce1a
(svn r18404) -Codechange: link drive through stops better together
...
-Feature: make penalty for road stop occupancy user configurable
-Fix [FS#1944]: road vehicles would not pick an empty drive through stop. Now they will *if* the penalty for driving around is less than the occupancy penalty
-Fix [FS#1495]: long (articulated) road vehicles could block loading of others when the following road vehicle already got 'permission' to go to the next bay even when it could not reach it
-Change: improve the throughput of the drive through road stops by letting them stop closer together
2009-12-04 20:52:19 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
rubidium
ee2d790b34
(svn r17908) -Fix [FS#3288]: uninitialised values in some paths of loading TTO savegames
2009-10-30 23:24:17 +00:00
rubidium
f11cebfe9b
(svn r17807) -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself
2009-10-18 17:52:44 +00:00
rubidium
5f59d0c5b4
(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)
2009-10-06 17:23:15 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
smatz
662ef3173b
(svn r17597) -Codechange: rename namegen* to townname*
2009-09-21 11:01:16 +00:00
rubidium
af457fc9fe
(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.
2009-09-15 20:58:44 +00:00
frosch
438a429549
(svn r17433) -Codechange: Store cumulated inflation in savegame and compute all prices from that instead of storing all prices separately.
...
Note: Savegame conversion computes the inflation from max loan. Prices from modified savegames will get lost. TTO savegames will also behave slightly different.
-Change: NewGRF price modifiers now take effect everytime when loading NewGRFs instead of once on gamestart.
2009-09-06 18:53:57 +00:00
smatz
b903e41c65
(svn r17431) -Fix (r16735): oldloader wasn't updated
2009-09-06 16:36:22 +00:00
smatz
f9257fabea
(svn r17429) -Fix (r16378): conversion of TTO/TTD savegames failed when vehicle 0 was a wagon
2009-09-06 09:56:12 +00:00
yexo
ae9441aa46
(svn r17419) -Fix (r-old, r16378): the index of orders loaded from old savegames was owerwritten with an unitialized value, causing asserts. The issue has present for a long time but only since the new pool system did it trigger a (correct) assert
2009-09-04 22:25:12 +00:00
rubidium
b1d4594fa7
(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
317f34b3d2
(svn r17340) -Fix: old loader tried to load a uint8 into a uint16
2009-09-01 12:14:57 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
smatz
13e23141b4
(svn r17124) -Codechange: store subsidies in a pool (instead of an array)
2009-08-08 20:53:36 +00:00
smatz
2a430d981f
(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
74d3382b94
(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
rubidium
7440ec7a73
(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h.
2009-07-25 08:54:19 +00:00
rubidium
9980af2898
(svn r16921) -Codechange: make it more clear what strings are related to road vehicles; only ROAD isn't always enough. Also unify the way of writing it.
2009-07-22 22:44:56 +00:00
rubidium
3bcfa7c52a
(svn r16917) -Codechange: fix some GCC 4.5 'case X is not in enum Y' warnings
2009-07-22 16:56:36 +00:00
smatz
76a50ce94d
(svn r16714) -Codechange: use pool-like accessors for Subsidy
2009-07-01 18:45:05 +00:00
smatz
8343340acb
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
2009-06-24 17:39:54 +00:00
smatz
a50ba1b8c1
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
2009-06-23 09:52:26 +00:00
smatz
5ef0745254
(svn r16631) -Fix (r1826)(r1881)(r9613): loading of some town data from old savegames was broken
2009-06-23 09:46:29 +00:00
smatz
0961668e14
(svn r16596) -Fix (r16378): there were several hundreds of empty signs above tile 0 after loading TTO/TTD savegame
2009-06-18 18:13:38 +00:00
rubidium
35aabc1d4c
(svn r16586) -Codechange: don't store lifelength in the savegame; it can easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect.
2009-06-17 17:13:30 +00:00
smatz
0c10006907
(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
glx
5991c5195c
(svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning
2009-05-26 23:37:34 +00:00
smatz
b2aed51f8e
(svn r16403) -Codechange: move code related to subsidies to separate file
2009-05-23 15:46:00 +00:00
rubidium
c4b627af42
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
2009-05-22 22:33:05 +00:00
rubidium
80e94b9bb1
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
2009-05-22 22:22:46 +00:00