fonsinchen
c915d9fa55
(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed private
2014-05-01 14:48:44 +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
frosch
41b7a04a68
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2014-02-07 23:48:56 +00:00
rubidium
18beaac571
(svn r26101) -Fix: NULL pointer dereference when one can't allocate an order list but wants to make implicit orders
2013-11-25 11:08:21 +00:00
frosch
ec4806a82d
(svn r26027) -Change [FS#5669-ish]: [NewGRF] Invalidate vehicle colour palette when leaving a station.
2013-11-17 16:02:39 +00:00
fonsinchen
6e1cc80926
(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.
2013-10-22 18:34:10 +00:00
fonsinchen
29e987f3fc
(svn r25898) -Codechange: Add second timestamp for 'restricted links' to all edges.
2013-10-22 16:13:28 +00:00
fonsinchen
338d9861bc
(svn r25883) -Fix: Limit recursion and branching in RefreshNextHopsStats more aggressively.
2013-10-19 13:17:06 +00:00
fonsinchen
95cde78e37
(svn r25738) -Feature: recursively walk all branches of conditional orders in the order prediction logic
2013-08-20 21:22:39 +00:00
fonsinchen
5e017b8000
(svn r25737) -Codechange: move inner workings of RefreshNextHopsStats into separate function
2013-08-20 21:22:37 +00:00
fonsinchen
5c0b766ed9
(svn r25736) -Codechange: move condition prediction out of GetNextStoppingOrder so that we can access both branches in calling code
2013-08-20 21:22:35 +00:00
fonsinchen
d8365c63fd
(svn r25735) -Feature: allow implicit orders even if no explicit ones are given.
2013-08-20 20:05:31 +00:00
fonsinchen
1137e250a0
(svn r25717) -Fix: check for type of order before checking for refit type
2013-08-11 10:59:47 +00:00
frosch
2770a24f9f
(svn r25695) -Fix [FS#5700] (r24882, r25648): Vehicle::MarkDirty must be called for the front engine.
2013-08-06 17:31:16 +00:00
frosch
5bda07c10c
(svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette during (un)loading.
2013-08-04 14:02:27 +00:00
fonsinchen
456627e01c
(svn r25636) -Fix: invalidate last_loading_station when stopping in depot
2013-07-30 18:55:52 +00:00
rubidium
e6eede841a
(svn r25604) -Fix [FS#5550]: Only the front engine's date of last service was updated
2013-07-13 14:12:14 +00:00
fonsinchen
b09c4043ec
(svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction
2013-07-06 17:01:31 +00:00
fonsinchen
04e3eb6fab
(svn r25361) -Feature: distribute cargo according to plan given by linkgraph
2013-06-09 13:03:48 +00:00
fonsinchen
a1a96b2e8b
(svn r25329) -Fix [FS#5582]: for refreshing next hops implicit orders are equivalent to explicit stopping orders
2013-06-07 22:12:39 +00:00
rubidium
254c3834d0
(svn r25319) -Fix [FS#5570]: crash when train with reserved cargo vanishes
2013-06-04 15:04:59 +00:00
rubidium
3947453277
(svn r25259) -Codechange: track capacities and usage of links
2013-05-19 14:22:04 +00:00
rubidium
5931faeff6
(svn r25235) -Fix [FS#5543]: keep all cargo whenever cancelling reservations (fonsinchen)
2013-05-12 11:53:53 +00:00
frosch
266bdfaffe
(svn r25226) -Fix/Change [FS#5538]: [NewGRF] Revise when vehicle running sound effects 04, 07 and 08 are played.
...
In depot or tunnel, or when crashed or stopped: No sound.
Braking: Effect 08 instead of 07.
2013-05-06 15:09:21 +00:00
frosch
9dee2f5c1e
(svn r25225) -Fix: [NewGRF] Play vehicle sound effect also for planes.
2013-05-06 14:57:42 +00:00
frosch
2030d1cf60
(svn r25224) -Fix [part of FS#5534]: cur_speed is only valid for the front engine, so make other engines in the consist use the speed of the front.
2013-05-06 14:08:27 +00:00
frosch
5eddbb338b
(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
2013-04-13 13:42:08 +00:00
rubidium
b2292122b6
(svn r25149) -Codechange: replace 'magic' 'has rating' bitcheck by descriptive function
2013-04-06 12:10:16 +00:00
frosch
22bb015f3d
(svn r25041) -Remove [FS#3764-ish]: ordered refit with subtypes, since the cases where it worked were corner cases rather than the general case.
2013-02-24 16:41:51 +00:00
rubidium
cdb0a76958
(svn r25012) -Codechange: persistently keep 'reserved' cargo (for full-load improved loading) instead of calculating if for every cycle
2013-02-17 14:54:50 +00:00
rubidium
2795ed5b09
(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
2013-02-17 14:10:15 +00:00
rubidium
369a6f9d1b
(svn r24995) -Codechange: Add flags to vehicle service interval for custom & ispercent (peter1138)
2013-02-14 17:06:49 +00:00
rubidium
c77cd1f409
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
2013-02-14 17:04:01 +00:00
frosch
e9c44aaeb3
(svn r24944) -Fix [FS#5452]: Deleting implicit orders wasn't able to deal with the various side-effects of DeleteOrder.
2013-01-27 18:11:16 +00:00
peter1138
c00a400cc7
(svn r24905) -Feature(ish): Implement station randomisation triggers.
2013-01-11 07:39:25 +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
rubidium
0dd0bbc071
(svn r24882) -Fix: desync when NewGRF changes the stats related to acceleration (power, weight, tractive effort, etc) during service or 32 day triggers
2013-01-02 22:20:07 +00:00
frosch
e888f9da9f
(svn r24711) -Fix (r10354): Check whether to not display a ^ loading indicator at drop stations only worked if there was no other vehicle unloading for 255 ticks.
2012-11-12 20:12:26 +00:00
frosch
9f43908d08
(svn r24709) -Codechange: Simplify some code.
2012-11-12 18:11:46 +00:00
planetmaker
a9af5f3c76
(svn r24579) -Change [FS#5322] (r21961): Show no loading indicator when orders are 'no unloading and no loading' (sbr)
2012-10-09 19:09:45 +00:00
alberth
0849fb8d36
(svn r24535) -Doc: Two additions, lots of small spelling fixes, and some Doxygen improvements.
2012-09-21 09:47:21 +00:00
frosch
48e0d9901f
(svn r24443) -Codechange: Move Vehicle::name to BaseConsist.
2012-07-29 16:45:11 +00:00
frosch
00b3ff80bb
(svn r24282) -Codechange: Add AddVehicleAdviceNewsItem function to preemptively deduplicate code.
2012-05-26 14:15:52 +00:00
rubidium
5bfed864a0
(svn r24219) -Fix [FS#5152]: immediately do the cargo payment on vehicle crashes instead of when they are cleared
2012-05-09 19:11:09 +00:00
michi_cc
a4b02d0a5d
(svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow)
2012-04-17 19:44:47 +00:00
michi_cc
6a70abbd99
(svn r24136) -Feature [FS#4465]: Autoreplace vehicles only when they get old. (Vikthor)
2012-04-17 19:44:02 +00:00
michi_cc
ef8ee48044
(svn r24128) -Change: Don't let vehicles break down directly after servicing.
2012-04-17 19:43:23 +00:00
michi_cc
bb8506032e
(svn r24124) -Add [FS#4658]: [NewGRF] Misc engine flag to disable breakdown smoke. (Hirundo)
2012-04-17 19:43:04 +00:00
rubidium
180e4e4c66
(svn r24067) -Change/fix: do not redraw up to 25% of the map when making a new vehicle visible for the first time
2012-03-25 19:24:32 +00:00
michi_cc
f2c694c8fb
(svn r23947) -Feature: Timetabled maximum travel speeds for non-flying vehicles.
2012-02-14 17:04:06 +00:00
rubidium
a08370f9da
(svn r23928) -Fix [FS#5053]: don't accelerate, for smoke purposes, when you reached the track's maximum speed
2012-02-11 20:25:21 +00:00
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
truebrain
0d929e877f
(svn r23713) -Codechange: split VehicleMove() into two functions, to minimalize the work done where possible
2012-01-02 13:44:30 +00:00
truebrain
19004a77f8
(svn r23712) -Codechange: rename the two vehicle hashes we have to names that make clear where they differ in
2012-01-02 12:07:50 +00:00
truebrain
0e9a98619d
(svn r23711) -Codechange: don't chain the two vehicle hashes, but call them one by one
2012-01-02 12:07:42 +00:00
rubidium
4de1f3be88
(svn r23540) -Codechange: unify and document vehicle widgets
2011-12-16 16:58:55 +00:00
rubidium
3d88c74389
(svn r23526) -Codechange: unify cargos vs cargoes
2011-12-15 21:56:00 +00:00
rubidium
58423b26d1
(svn r23474) -Codechange: move the declaration error related functions to error.h
2011-12-10 13:54:10 +00:00
truebrain
98103121d4
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
2011-11-29 23:15:35 +00:00
peter1138
2f05d090fb
(svn r23328) -Change: Make the viewport vehicle position hash cover the same area.
2011-11-25 23:02:39 +00:00
peter1138
81598273e9
(svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
2011-11-24 12:38:48 +00:00
michi_cc
4d2a9e384c
(svn r23290) -Fix [FS#2379,FS#3569]: Change the centre of train vehicles to depend on the vehicle length instead of being fixed at 4/8th of the original vehicle length to make sure shortened vehicles don't block tiles they shouldn't block.
2011-11-21 20:51:43 +00:00
rubidium
c9a7f572ec
(svn r23195) -Codechange: if we really need to cast away constness, use const_cast
2011-11-12 08:37:12 +00:00
frosch
026317bb44
(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().
2011-11-09 16:38:50 +00:00
frosch
52774235eb
(svn r23148) -Change: [NewGRF] Check the results of various callbacks for validness.
2011-11-08 17:27:13 +00:00
michi_cc
a3e6e113fe
(svn r23112) -Codechange: Check if vehicle chain lengths stays constant when auto-refitting.
2011-11-04 15:04:29 +00:00
rubidium
9782b7bb0a
(svn r23110) -Codechange: let the flying altitude return ints are well
2011-11-04 13:40:59 +00:00
rubidium
2a2c102b0b
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
2011-11-04 11:52:19 +00:00
rubidium
7757a2ed40
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
2011-11-04 10:18:13 +00:00
frosch
acc3c75951
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
2011-11-01 00:23:41 +00:00
frosch
72cd855978
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
2011-11-01 00:21:08 +00:00
frosch
cadaa0a8b6
(svn r23050) -Fix: [NewGRF] When vehicles break down, update the image cache after changing the vehicle state to make fish happy.
2011-10-21 21:03:40 +00:00
frosch
d071eefc54
(svn r22985) -Feature: Display autoreplace status in group GUI.
2011-10-03 17:26:37 +00:00
frosch
23a2f23eb3
(svn r22984) -Feature: Display profit icons for groups in the group GUI.
2011-10-03 17:25:44 +00:00
frosch
1a12008fcf
(svn r22982) -Cleanup: Remove CountCompanyVehicles() and use ALL_GROUP statistics instead.
2011-10-03 17:24:31 +00:00
frosch
dd74536bef
(svn r22981) -Add: GroupStatistics for the ALL_GROUP.
2011-10-03 17:23:41 +00:00
frosch
5be8f73204
(svn r22980) -Add: GroupStatistics for DEFAULT_GROUP.
2011-10-03 17:22:56 +00:00
frosch
fafa06e821
(svn r22979) -Codechange: Add GroupStatistics::CountEngine().
2011-10-03 17:22:09 +00:00
frosch
68f969282e
(svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle().
2011-10-03 17:21:41 +00:00
frosch
b6766c2ed5
(svn r22976) -Codechange: Split group statistics into separate struct.
2011-10-03 17:20:26 +00:00
frosch
2188383658
(svn r22947) -Fix: [NewGRF] Do not call CB 32 for disaster, effect vehicles or aircraft shadows/rotors.
2011-09-19 19:23:23 +00:00
frosch
b642b4a881
(svn r22847) -Fix (r22816): Wagons shall not be processed by autorenew.
2011-08-27 08:41:36 +00:00
frosch
28117b3eb0
(svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts.
2011-08-22 21:33:58 +00:00
michi_cc
08b7981f37
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
michi_cc
050a212195
(svn r22572) -Fix: MSVC performance warning (assigning int to bool).
2011-06-12 23:42:42 +00:00
michi_cc
c9af6126f8
(svn r22532) -Fix: Do not create an implicit order if the current order is the first order in the order list and we visit the station of the last entry of the order list.
2011-06-02 22:41:05 +00:00
frosch
460d24fd83
(svn r22506) -Feature [FS#4625]: Make the transparency options for industries also affect the effect vehicles created by industries.
2011-05-28 09:46:37 +00:00
frosch
87515d0873
(svn r22492) -Fix [FS#4624] (r21642, r22328): Only try to insert implicit orders for ground vehicles. Aircraft may reach unscheduled terminals when skippnig orders etc.
2011-05-25 20:10:02 +00:00
frosch
474b4799e8
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
2011-05-21 11:26:37 +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
frosch
204a6b16c3
(svn r22333) -Change: Prefer deleting automatic orders instead of inserting new ones.
2011-04-16 17:20:08 +00:00
frosch
74069dbda3
(svn r22332) -Fix: When inserting automatic orders, do not create consecutive duplicate orders.
2011-04-16 17:18:04 +00:00
frosch
8dd2f413bd
(svn r22331) -Change: When inserting an (automatic) order A in front of an order B, disable modifications of automatic orders for all vehicles currently heading for B as we do not know whether they will reach A or B first. (except for the vehicle causing the insertion of the automatic order itself)
2011-04-16 17:06:59 +00:00
frosch
709f0e4f83
(svn r22329) -Change: When the current orders are interrupted for non-ordered service, disable modifications to automatic orders until the next real order is completed. (train part already slipped by in r22328)
2011-04-16 16:56:24 +00:00
frosch
194a941a37
(svn r22328) -Add: a flag to GroundVehicles to disable insertion and removal of automatic orders until the next real order is reached.
2011-04-16 16:45:35 +00:00
frosch
aedd38255b
(svn r22327) -Add: Vehicle::GetGroundVehicleFlags() for accessing GroundVehicle<>::gv_flags through a Vehicle struct.
2011-04-16 16:41:02 +00:00
frosch
5eafcd8de6
(svn r22324) -Fix: Vehicles skipped orders when inserting automatic orders failed.
2011-04-15 19:03:55 +00:00
frosch
dd20823277
(svn r22245) -Codechange: Make vehicle lists handle command-/GUI-scope invalidations themself.
2011-03-13 21:33:30 +00:00
frosch
19b7249ade
(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
2011-02-23 20:54:55 +00:00
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
2011-02-19 23:05:47 +00:00
rubidium
68bc93f950
(svn r22111) -Codechange/fix-ish: upon cleaning a pool a destructor should not delete items from other pools
2011-02-19 18:02:17 +00:00
smatz
7af2470a78
(svn r22022) -Fix [FS#4468]: verify we can allocate an order before we actually try to do so
2011-02-08 18:21:55 +00:00
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
2011-02-07 22:37:22 +00:00
rubidium
64cba95fbe
(svn r22006) -Fix [FS#4480]: smoke/sparks of trains would be shown under bridges, or rather through bridges
2011-02-07 09:50:20 +00:00
rubidium
4c5ca17486
(svn r21957) -Cleanup: gotodepot and timetabling settings are more or less useless; just don't use depot orders or timetabling if you don't want to use it
2011-02-04 15:13:20 +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
alberth
eea2f90da7
(svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions.
2011-01-29 21:37:11 +00:00
terkhen
734994c9ba
(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
...
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
2011-01-29 17:30:25 +00:00
rubidium
8017c2a3d7
(svn r21909) -Fix: some missing spaces
2011-01-26 08:14:36 +00:00
frosch
9a1c0f139a
(svn r21902) -Fix: Do not count articulated parts when passing the number of vehicles to refit to the command. That may exceed 8 bits.
2011-01-23 14:58:54 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
terkhen
b5468e7a80
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
2011-01-19 18:44:13 +00:00
terkhen
cfbbcf1597
(svn r21858) -Codechange: Give more similar names to ArticulatedPart functions.
2011-01-19 18:41:53 +00:00
rubidium
d89095b3ec
(svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z].
2011-01-18 21:58:22 +00:00
rubidium
62128e8263
(svn r21826) -Fix [FS#4007]: the expectations from the "always build infrastructure" setting name/description didn't match the behaviour
2011-01-16 21:10:41 +00:00
rubidium
bd9f07e5a0
(svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen)
2011-01-15 18:19:04 +00:00
rubidium
4784c3ac3c
(svn r21808) -Fix: don't create automatic orders when there are no manual orders (fonsinchen)
2011-01-15 18:16:46 +00:00
rubidium
bc9afec3b0
(svn r21807) -Codechange: split automatic order removal into a separate function (fonsinchen)
2011-01-15 18:14:29 +00:00
smatz
0ab078158e
(svn r21804) -Remove [FS#4409]: the 'stopall' console command, as its functionality was broken. Group start/stop commands can be used instead
2011-01-15 15:51:16 +00:00
smatz
2709454040
(svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day
2011-01-15 14:20:34 +00:00
frosch
be106c77a9
(svn r21738) -Fix (r21642)[FS#4384]: Start loading when cur_order_index points to the destination station, i.e. after deleting not-reached automatic orders.
2011-01-06 22:27:56 +00:00
rubidium
64c7cc51b5
(svn r21679) -Fix (r21642): reading a just freed variable
2010-12-31 15:53:46 +00:00
rubidium
b06b05c360
(svn r21643) -Fix (r21642): crash when a train with no orders (or actually no order list) stops at a station
2010-12-26 12:55:12 +00:00
rubidium
64f04c3a74
(svn r21642) -Feature: concept of automatic station orders; add stub orders for intermediate stations and remove them when not visiting them anymore. This allows you to see what trains visit a station without actually having to order a vehicle to stop at all stations. Based on patch by fonsinchen
2010-12-26 09:03:19 +00:00
frosch
c4ad5d6fea
(svn r21598) -Fix (r3139, r21236, r21249)[FS#4275]: The default visual effect only depends on properties of the Engine (wagon or not, tractiontype, ...), not whether it is used as articulated part, front engine or whatever in a specific consist.
2010-12-22 15:40:22 +00:00
frosch
4b2624de1d
(svn r21597) -Fix (r21239): Also catch the case when callback 10 returns VE_DEFAULT.
2010-12-22 14:51:12 +00:00
frosch
fbe653d4ef
(svn r21596) -Codechange: Rename a misleading-named variable.
2010-12-22 14:38:24 +00:00
terkhen
8fc48a79da
(svn r21562) -Change: Add articulated parts of vehicles in a refit selection to that selection.
2010-12-21 13:53:19 +00:00
terkhen
a1ff6859c5
(svn r21561) -Change: Allow to specify the number of vehicles to refit in the refit vehicle command.
2010-12-21 13:52:10 +00:00
terkhen
48b7916458
(svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains.
2010-12-14 21:33:53 +00:00
terkhen
a4a9274177
(svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle.
2010-12-14 21:31:00 +00:00
terkhen
12c86a1391
(svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache.
2010-12-14 21:28:45 +00:00
rubidium
6d831906a3
(svn r21508) -Codechange: move the code to handle the pathfinder's "path found" status to a separate function
2010-12-13 21:55:06 +00:00
rubidium
23369337c1
(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
2010-12-11 13:48:30 +00:00
rubidium
40258d927f
(svn r21249) -Fix (r21240, r21236) [FS#4242]: rear ends of dualheaded engines didn't smoke nor spark (Hirundo)
2010-11-18 23:09:24 +00:00
rubidium
2223ff92c7
(svn r21240) -Feature: [NewGRF] Implement action0 visual effect properties for ships and RVs (Hirundo)
2010-11-18 14:32:09 +00:00
rubidium
46186134c8
(svn r21239) -Codechange/Fix: [NewGRF] Use 0xFF instead of 0 as default value for visual effect. This makes setting train prop 22 to 0 actually work (Hirundo)
2010-11-18 14:20:03 +00:00
rubidium
9af570eab4
(svn r21237) -Codechange: Move HandleLocomotiveSmokeCloud to Vehicle::ShowVisualEffect (Hirundo)
2010-11-18 14:15:27 +00:00
rubidium
b9407f7ca0
(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo)
2010-11-18 14:09:39 +00:00
terkhen
c96cb9ce37
(svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers.
2010-11-16 20:56:04 +00:00
terkhen
25d1b2f54b
(svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time.
2010-11-06 13:03:17 +00:00
alberth
fa13971337
(svn r21088) -Doc: Additions/corrections of doxygen comments.
2010-11-05 16:34:22 +00:00
alberth
7e48d85104
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
2010-10-30 17:51:07 +00:00
frosch
8dc7521bf2
(svn r21039) -Fix/Cleanup: Remove an unneeded and even wrong test, which is never reached anyway though.
2010-10-25 20:43:36 +00:00
frosch
611e986226
(svn r20847) -Codechange: Split most of GetEngineLivery() into a separate GetEngineLiveryScheme() function.
2010-09-25 21:57:52 +00:00
rubidium
f5128695c5
(svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers
2010-09-08 21:37:13 +00:00
smatz
fd54943c7a
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
2010-09-06 14:14:09 +00:00
rubidium
f1f1c71a41
(svn r20646) -Codechange: make the code flow of breakdown handling a bit clearer
2010-08-28 14:18:56 +00:00
rubidium
2fb18e975c
(svn r20645) -Codechange [FS#4086]: unify the code for checking for breakdown handling as well (Hirundo)
2010-08-28 14:14:37 +00:00
rubidium
702cc96943
(svn r20644) -Codechange [FS#4086]: unify the vehicle breakdown code (Hirundo)
2010-08-28 14:01:50 +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
e2e26190d5
(svn r20623) -Codechange: unify the storing of animation related information
2010-08-26 15:31:40 +00:00
rubidium
9d1145e50c
(svn r20605) -Fix [FS#4063]: let NewGRFs var43 var (information about liveries) for vehicles not be influenced by the local setting determining whether to show liveries or not.
2010-08-23 22:28:35 +00:00
rubidium
d6cd62e633
(svn r20581) -Codechange: simplify getting the station in CalcPercentVehicleFilled
2010-08-20 15:35:14 +00:00
rubidium
287ee8c01d
(svn r20541) -Fix: when removing a vehicle update the "clone orders of"-vehicle of a backed up order, or remove it if there is no vehicle sharing orders with that vehicle.
2010-08-18 15:58:30 +00:00
alberth
35fec79700
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
2010-08-15 14:06:43 +00:00
rubidium
29b489a055
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
2010-08-10 15:54:53 +00:00
alberth
5cfc029523
(svn r20391) -Fix [FS#3993]: Prevent buying more vehicles than allowed.
2010-08-06 20:10:53 +00:00
alberth
e0e66b6ed0
(svn r20390) -Codechange: Move company vehicle counting to vehicle.cpp.
2010-08-06 19:56:14 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
yexo
dd7800ea18
(svn r20234) -Fix [FS#3988]: refit costs from refit orders are subtracted from the vehicle yearly income
2010-07-28 14:18:58 +00:00
terkhen
8858729ae7
(svn r20142) -Fix [FS#3880]: Ships were not marked as dirty when stopping inside a depot.
2010-07-14 12:20:48 +00:00
frosch
1055c2b0fd
(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.
2010-07-10 08:54:57 +00:00
michi_cc
811f0db597
(svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes fail to release its reserved path.
2010-07-09 14:14:17 +00:00
alberth
604e56adc2
(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.
2010-06-27 09:05:10 +00:00
frosch
e931399b31
(svn r20005) -Codechange: Enumify force_proceed.
2010-06-21 17:35:27 +00:00
frosch
94efc4c3b9
(svn r19992) -Fix [FS#3878]: Clear force_proceed when entering depots and when loading.
...
-Fix (r18515): Resetting of force_proceed on manual stopping did not work.
2010-06-16 20:27:59 +00:00
terkhen
3287f91893
(svn r19963) -Add: Stop a vehicle after it crashes or is destroyed.
2010-06-11 20:30:12 +00:00
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
smatz
00a52cc475
(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
2010-05-03 23:36:17 +00:00
rubidium
f56ebd81c3
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
2010-04-24 13:39:11 +00:00
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
2010-03-20 17:58:24 +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
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
2010-03-13 17:11:28 +00:00
alberth
55f8d5d802
(svn r19369) -Codechange: EnsureNoTrainOnTrackBits() returns a CommandCost now.
2010-03-07 18:24:41 +00:00
alberth
6eac50bc16
(svn r19366) -Codechange: Move setting of _error_message from the callback check routine to the caller.
2010-03-07 16:10:40 +00:00
alberth
29b79e03e8
(svn r19365) -Codechange: Move EnsureNoTrainOnTrackProc() to src/vehicle.cpp.
2010-03-07 15:54:58 +00:00
alberth
c395b93acd
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
2010-03-05 21:20:22 +00:00
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
2010-02-28 20:28:08 +00:00
alberth
63dd6ce6b0
(svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status.
2010-02-28 18:15:19 +00:00
alberth
993d82b879
(svn r19289) -Codechange: Move _error_message assignment from check routine to caller.
2010-02-28 10:47:46 +00:00
alberth
8408b42dee
(svn r19288) -Codechange: Move EnsureNoVehicleOnGround() and HasVehicleOnTunnelBridge() functions.
2010-02-28 10:44:53 +00:00
alberth
d7698bb6db
(svn r19282) -Doc: Add some doxygen doc markup.
2010-02-27 19:53:37 +00:00
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
2010-02-24 14:46:15 +00:00
frosch
63b01f2009
(svn r19218) -Feature: [NewGRF] Add CB36 support for aircraft properties 0F and 11. (Eddi)
2010-02-22 21:46:20 +00:00
smatz
d155794605
(svn r18978) -Fix [FS#3584](r14753): possible invalid memory access when merging companies
2010-02-01 00:10:52 +00:00
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +00:00
rubidium
4d93b704d9
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
2010-01-18 22:57:21 +00:00
rubidium
aaf0b4b46c
(svn r18812) -Codechange: make some functions in train.h functions of Train.
2010-01-15 18:23:52 +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
fb9eba67d1
(svn r18642) -Fix [FS#3432]: when a company goes bankrupt and has vehicles on a drive through road stop that is not theirs, the 'filled' cache of the road stops would get corrupted
2009-12-27 09:05:00 +00:00
frosch
640442ae03
(svn r18571) -Fix (r18551): Vehicles not carrying any cargo (e.g. engines) were not considered for sending to depot for replacement.
2009-12-20 15:21:39 +00:00
frosch
4434422c11
(svn r18568) -Codechange: Bail out early.
2009-12-20 15:08:20 +00:00
frosch
7ea108224b
(svn r18551) -Fix [FS#1762]: When autoreplace is the only allowed reason to send vehicles to depot, first check some minimal requirements (engine availability, refittability) and a heuristic for the needed money.
2009-12-19 21:54:34 +00:00
rubidium
d48ad4b6e3
(svn r18549) -Fix: first do the time-since-last-service check and only then determine whether autoreplace needs to take place. This way they will not keep autoreplacing continuously on failure, but only after some timeout.
2009-12-19 21:19:45 +00:00