Commit Graph

632 Commits

Author SHA1 Message Date
rubidium
2be4215f43 (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
eb6974179d (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
379e83f042 (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
e580a3fe8a (svn r26027) -Change [FS#5669-ish]: [NewGRF] Invalidate vehicle colour palette when leaving a station. 2013-11-17 16:02:39 +00:00
fonsinchen
fb281ce23c (svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher. 2013-10-22 18:34:10 +00:00
fonsinchen
d0c610f0ec (svn r25898) -Codechange: Add second timestamp for 'restricted links' to all edges. 2013-10-22 16:13:28 +00:00
fonsinchen
67e0f7416a (svn r25883) -Fix: Limit recursion and branching in RefreshNextHopsStats more aggressively. 2013-10-19 13:17:06 +00:00
fonsinchen
9eb73939c9 (svn r25738) -Feature: recursively walk all branches of conditional orders in the order prediction logic 2013-08-20 21:22:39 +00:00
fonsinchen
0d9612a0fb (svn r25737) -Codechange: move inner workings of RefreshNextHopsStats into separate function 2013-08-20 21:22:37 +00:00
fonsinchen
40120e1bad (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
2c2e143026 (svn r25735) -Feature: allow implicit orders even if no explicit ones are given. 2013-08-20 20:05:31 +00:00
fonsinchen
cb4bde78b1 (svn r25717) -Fix: check for type of order before checking for refit type 2013-08-11 10:59:47 +00:00
frosch
bab22f7c1b (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
206616bf37 (svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette during (un)loading. 2013-08-04 14:02:27 +00:00
fonsinchen
c827eb9e0e (svn r25636) -Fix: invalidate last_loading_station when stopping in depot 2013-07-30 18:55:52 +00:00
rubidium
67bb165b9d (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
ae5e88e186 (svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction 2013-07-06 17:01:31 +00:00
fonsinchen
f022550df9 (svn r25361) -Feature: distribute cargo according to plan given by linkgraph 2013-06-09 13:03:48 +00:00
fonsinchen
2ad1f88feb (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
46df11b74a (svn r25319) -Fix [FS#5570]: crash when train with reserved cargo vanishes 2013-06-04 15:04:59 +00:00
rubidium
6b746167e4 (svn r25259) -Codechange: track capacities and usage of links 2013-05-19 14:22:04 +00:00
rubidium
f952f0bfdd (svn r25235) -Fix [FS#5543]: keep all cargo whenever cancelling reservations (fonsinchen) 2013-05-12 11:53:53 +00:00
frosch
464ec793e8 (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
fd321c6e5f (svn r25225) -Fix: [NewGRF] Play vehicle sound effect also for planes. 2013-05-06 14:57:42 +00:00
frosch
803046d32b (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
c5d7445704 (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
e0d3265546 (svn r25149) -Codechange: replace 'magic' 'has rating' bitcheck by descriptive function 2013-04-06 12:10:16 +00:00
frosch
972c4560dc (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
7dd2354a13 (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
84ca041564 (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
8539c04192 (svn r24995) -Codechange: Add flags to vehicle service interval for custom & ispercent (peter1138) 2013-02-14 17:06:49 +00:00
rubidium
2c67dc3d9f (svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138) 2013-02-14 17:04:01 +00:00
frosch
ddfd734523 (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
1e10e91fde (svn r24905) -Feature(ish): Implement station randomisation triggers. 2013-01-11 07:39:25 +00:00
planetmaker
f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
rubidium
07963e5a5a (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
94ee0ddc43 (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
86a801ed75 (svn r24709) -Codechange: Simplify some code. 2012-11-12 18:11:46 +00:00
planetmaker
6c617cb121 (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
6c6abd87db (svn r24535) -Doc: Two additions, lots of small spelling fixes, and some Doxygen improvements. 2012-09-21 09:47:21 +00:00
frosch
4216eb383f (svn r24443) -Codechange: Move Vehicle::name to BaseConsist. 2012-07-29 16:45:11 +00:00
frosch
ae4681ab4c (svn r24282) -Codechange: Add AddVehicleAdviceNewsItem function to preemptively deduplicate code. 2012-05-26 14:15:52 +00:00
rubidium
763ed799e7 (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
72d6eb4342 (svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow) 2012-04-17 19:44:47 +00:00
michi_cc
72b3bb9dd5 (svn r24136) -Feature [FS#4465]: Autoreplace vehicles only when they get old. (Vikthor) 2012-04-17 19:44:02 +00:00
michi_cc
4de25e41bf (svn r24128) -Change: Don't let vehicles break down directly after servicing. 2012-04-17 19:43:23 +00:00
michi_cc
748d786c52 (svn r24124) -Add [FS#4658]: [NewGRF] Misc engine flag to disable breakdown smoke. (Hirundo) 2012-04-17 19:43:04 +00:00
rubidium
85996f039b (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
64c5299b4d (svn r23947) -Feature: Timetabled maximum travel speeds for non-flying vehicles. 2012-02-14 17:04:06 +00:00
rubidium
48a685748c (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