Commit Graph

632 Commits (9f3590ccba86cc2e9dae54eadf172d214d515ab6)

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 10 years ago
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. 11 years ago
rubidium 379e83f042 (svn r26101) -Fix: NULL pointer dereference when one can't allocate an order list but wants to make implicit orders 11 years ago
frosch e580a3fe8a (svn r26027) -Change [FS#5669-ish]: [NewGRF] Invalidate vehicle colour palette when leaving a station. 11 years ago
fonsinchen fb281ce23c (svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher. 11 years ago
fonsinchen d0c610f0ec (svn r25898) -Codechange: Add second timestamp for 'restricted links' to all edges. 11 years ago
fonsinchen 67e0f7416a (svn r25883) -Fix: Limit recursion and branching in RefreshNextHopsStats more aggressively. 11 years ago
fonsinchen 9eb73939c9 (svn r25738) -Feature: recursively walk all branches of conditional orders in the order prediction logic 11 years ago
fonsinchen 0d9612a0fb (svn r25737) -Codechange: move inner workings of RefreshNextHopsStats into separate function 11 years ago
fonsinchen 40120e1bad (svn r25736) -Codechange: move condition prediction out of GetNextStoppingOrder so that we can access both branches in calling code 11 years ago
fonsinchen 2c2e143026 (svn r25735) -Feature: allow implicit orders even if no explicit ones are given. 11 years ago
fonsinchen cb4bde78b1 (svn r25717) -Fix: check for type of order before checking for refit type 11 years ago
frosch bab22f7c1b (svn r25695) -Fix [FS#5700] (r24882, r25648): Vehicle::MarkDirty must be called for the front engine. 11 years ago
frosch 206616bf37 (svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette during (un)loading. 11 years ago
fonsinchen c827eb9e0e (svn r25636) -Fix: invalidate last_loading_station when stopping in depot 11 years ago
rubidium 67bb165b9d (svn r25604) -Fix [FS#5550]: Only the front engine's date of last service was updated 11 years ago
fonsinchen ae5e88e186 (svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction 11 years ago
fonsinchen f022550df9 (svn r25361) -Feature: distribute cargo according to plan given by linkgraph 11 years ago
fonsinchen 2ad1f88feb (svn r25329) -Fix [FS#5582]: for refreshing next hops implicit orders are equivalent to explicit stopping orders 11 years ago
rubidium 46df11b74a (svn r25319) -Fix [FS#5570]: crash when train with reserved cargo vanishes 11 years ago
rubidium 6b746167e4 (svn r25259) -Codechange: track capacities and usage of links 11 years ago
rubidium f952f0bfdd (svn r25235) -Fix [FS#5543]: keep all cargo whenever cancelling reservations (fonsinchen) 11 years ago
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.
11 years ago
frosch fd321c6e5f (svn r25225) -Fix: [NewGRF] Play vehicle sound effect also for planes. 11 years ago
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. 11 years ago
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) 11 years ago
rubidium e0d3265546 (svn r25149) -Codechange: replace 'magic' 'has rating' bitcheck by descriptive function 11 years ago
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. 12 years ago
rubidium 7dd2354a13 (svn r25012) -Codechange: persistently keep 'reserved' cargo (for full-load improved loading) instead of calculating if for every cycle 12 years ago
rubidium 84ca041564 (svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen) 12 years ago
rubidium 8539c04192 (svn r24995) -Codechange: Add flags to vehicle service interval for custom & ispercent (peter1138) 12 years ago
rubidium 2c67dc3d9f (svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138) 12 years ago
frosch ddfd734523 (svn r24944) -Fix [FS#5452]: Deleting implicit orders wasn't able to deal with the various side-effects of DeleteOrder. 12 years ago
peter1138 1e10e91fde (svn r24905) -Feature(ish): Implement station randomisation triggers. 12 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
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 12 years ago
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. 12 years ago
frosch 86a801ed75 (svn r24709) -Codechange: Simplify some code. 12 years ago
planetmaker 6c617cb121 (svn r24579) -Change [FS#5322] (r21961): Show no loading indicator when orders are 'no unloading and no loading' (sbr) 12 years ago
alberth 6c6abd87db (svn r24535) -Doc: Two additions, lots of small spelling fixes, and some Doxygen improvements. 12 years ago
frosch 4216eb383f (svn r24443) -Codechange: Move Vehicle::name to BaseConsist. 12 years ago
frosch ae4681ab4c (svn r24282) -Codechange: Add AddVehicleAdviceNewsItem function to preemptively deduplicate code. 12 years ago
rubidium 763ed799e7 (svn r24219) -Fix [FS#5152]: immediately do the cargo payment on vehicle crashes instead of when they are cleared 12 years ago
michi_cc 72d6eb4342 (svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow) 12 years ago
michi_cc 72b3bb9dd5 (svn r24136) -Feature [FS#4465]: Autoreplace vehicles only when they get old. (Vikthor) 12 years ago
michi_cc 4de25e41bf (svn r24128) -Change: Don't let vehicles break down directly after servicing. 12 years ago
michi_cc 748d786c52 (svn r24124) -Add [FS#4658]: [NewGRF] Misc engine flag to disable breakdown smoke. (Hirundo) 12 years ago
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 12 years ago
michi_cc 64c5299b4d (svn r23947) -Feature: Timetabled maximum travel speeds for non-flying vehicles. 13 years ago
rubidium 48a685748c (svn r23928) -Fix [FS#5053]: don't accelerate, for smoke purposes, when you reached the track's maximum speed 13 years ago