Commit Graph

655 Commits

Author SHA1 Message Date
frosch 5558899621 (svn r27986) -Codechange: Name magic constants in the vehicle position hash functions. 2018-03-11 13:23:26 +00:00
adf88 88726f71b6 (svn r27904) -Fix [FS#6593]: When last vehicle is removed from shared orders group, hide the "Stop sharing" button in vehile orders window 2017-08-31 06:47:17 +00:00
frosch b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 2017-08-13 18:38:42 +00:00
peter1138 19d56a33e8 (svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display to group vehicle list (mtm, JGR) 2017-03-24 07:33:31 +00:00
frosch 117e73751c (svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites. 2016-10-16 14:59:44 +00:00
frosch c175067ed9 (svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw. 2016-10-16 14:58:38 +00:00
frosch d2393b4f6c (svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq. 2016-10-16 14:57:56 +00:00
frosch dac94c7cbc (svn r27584) -Codechange: Add some assertions about Vehicle::cargo_payment. 2016-05-29 13:33:20 +00:00
frosch 312809228d (svn r27426) -Change: Round loading percentage in loading indicators and conditional orders towards 50%, so that 0% and 100% mean completely empty or full. 2015-10-30 17:24:05 +00:00
planetmaker 55f42eaa1f (svn r27222) -Fix [FS#6278]: Use the current maximum speed as limited by bridges, orders etc. for all vehicle types alike when considering increased smoke emissions of vehicles. 2015-04-09 18:17:43 +00:00
frosch 2e1be6081d (svn r27148) -Fix: Rounding and unit-conversion inconsistencies in calls to MarkAllViewportsDirty. 2015-02-14 12:53:07 +00:00
rubidium 9daf7e749c (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 2014-09-21 11:24:51 +00:00
rubidium 6c2abf0930 (svn r26863) -Codechange: move a number of Vehicle* functions into the Vehicle class 2014-09-20 15:31:26 +00:00
frosch 52fd95915a (svn r26756) -Fix (r26747): Ground vehicle breakdown smoke was not supposed to be available yet, since it is a looping animation. 2014-08-23 13:31:20 +00:00
frosch 17872c8be1 (svn r26755) -Fix (r26747) [FS#6093]: Silence MSVC warning. 2014-08-23 10:44:32 +00:00
frosch c30e137685 (svn r26747) -Feature: [NewGRF] Advanced visual effects with multiple effect sprites independent of spawning model. 2014-08-17 14:53:11 +00:00
frosch 17e88d644a (svn r26746) -Codechange: Separate enums for visual effect type and spawning model. 2014-08-17 14:52:48 +00:00
frosch d263fcce82 (svn r26745) -Codechange: Deduplicate calls to CreateEffectVehicleRel for vehicle visual effects. 2014-08-17 14:52:32 +00:00
rubidium 3d2895dbd1 (svn r26706) -Fix [FS#6015] (r20644): wrong breakdown sound was played for ships 2014-07-27 18:16:03 +00:00
rubidium 3d3fb76b7e (svn r26699) -Fix-ish: do not crash when trying to show an error about vehicle in a NewGRF and the NewGRF was not loaded at all 2014-07-21 18:03:05 +00:00
fonsinchen a9e3828dd2 (svn r26594) -Fix [FS#6006]: Don't call UpdateVehicleTimetable with dummy orders 2014-05-17 19:38:30 +00:00
fonsinchen 3ee31a8f89 (svn r26547) -Codechange: Collect order travel and wait times independent of timetables 2014-05-01 14:49:16 +00:00
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