Commit Graph

134 Commits (9742300a1eef68cc6b594e9ee03d3c741347e677)

Author SHA1 Message Date
Jonathan G Rennison 5e924262f4 Fix speed reduction after critical breakdowns.
Previous code set vcache.cached_max_speed directly (and incorrectly),
which did not survive across save/load or network joins.
Instead add a struct Train field to store the number
of critical breakdowns since last service and do the speed reduction
properly in Train::ConsistChanged.
Slightly tweak algorithm for speed reduction.
9 years ago
Jonathan G Rennison 80d52eb20e Improved breakdowns patch: fix various issues
* Whitespace/formatting
* Fix setting lang string
* Fix spelling of VRF_TO_HEAVY
9 years ago
patch-import 9f5164b403 Import Improved Breakdowns patch
Fix trailing whitespace

http://www.tt-forums.net/viewtopic.php?p=1146419#p1146419
9 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
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
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
michi_cc bac2b4c25d (svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list sprites. (Based on patch by Eddi) 12 years ago
frosch 358a2bd6ed (svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked. 12 years ago
michi_cc 617993e904 (svn r23773) -Change: [NewGRF] Update all cached train properties if a train vehicle enters a new railtype. 13 years ago
truebrain aa1a0053b0 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 13 years ago
smatz 36747f96a6 (svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls 13 years ago
michi_cc 3b45b41e68 (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. 13 years ago
rubidium de980ef0f9 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
frosch 6e61fee028 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs. 13 years ago
alberth fe71cbfc8b (svn r21976) -Doc: Document several crash handling functions. 14 years ago
alberth b5e2e83823 (svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions. 14 years ago
alberth 5ef4317dd9 (svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions. 14 years ago
terkhen 0ac0bcfdf7 (svn r21923) -Codechange: Unify articulated vehicle iteration functions. 14 years ago
rubidium 0f411f9899 (svn r21911) -Codechange: move tcache.last_speed to gcache.last_speed and make SetLastSpeed a function of GroundVehicle 14 years ago
smatz 50dfa5986c (svn r21883) -Codechange: make UpdateZPosition() faster by not calling GetSlopeZ() when not needed 14 years ago
smatz 792659936e (svn r21876) -Codechange: typedef SpecializedVehicleBase and GroundVehicleBase to reduce typing 14 years ago
terkhen 8db501e115 (svn r21862) -Codechange: Unify subtype handling between road vehicles and trains. 14 years ago
terkhen a89c92ef6e (svn r21859) -Codechange: Move train subtype flags to GroundVehicle. 14 years ago
terkhen 44a10ac857 (svn r21858) -Codechange: Give more similar names to ArticulatedPart functions. 14 years ago
michi_cc c1091569d0 (svn r21712) -Change: Tune 'realistic' acceleration even more to make more trains reach their top speed. 14 years ago
terkhen f69d280f14 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 14 years ago
rubidium 45344d48bb (svn r21504) -Codechange: move the "lost" bit from the train's flags to vehicle flags 14 years ago
rubidium 5f4754f2db (svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo) 14 years ago
rubidium f1848b8614 (svn r21232) -Codechange: Move cached_vis_effect from the TrainCache to the VehicleCache (Hirundo) 14 years ago
michi_cc 06fd794dc7 (svn r21106) -Change: Tuned realistic acceleration to be a bit more realistic in order to make acceleration "slower", which highlights the differences between vehicle types more. 14 years ago
terkhen ca755e983c (svn r21097) -Codechange: Unify cached max speed for all vehicle types. 14 years ago
terkhen ac4a3c9101 (svn r21092) -Codechange: Merge max speed functions. 14 years ago
alberth 063931d435 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
frosch d08c3d9381 (svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing railtype. 14 years ago
frosch c4f630e5ba (svn r20504) -Codechange: Move updating of train's visual effect to separate function. 14 years ago
frosch fe3c70624e (svn r20503) -Fix (r18838): Powered wagons should check the railtype of the tile they are on, not where the engine is on. 14 years ago
terkhen 7f786ae7b8 (svn r20302) -Add: Method for getting the air drag of a ground vehicle. 14 years ago
terkhen f33a0370ae (svn r20299) -Add: Make trains and road vehicles use a different area value to calculate air drag. 14 years ago
michi_cc 454144474a (svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes fail to release its reserved path. 14 years ago
frosch 6f800a8407 (svn r20005) -Codechange: Enumify force_proceed. 14 years ago
terkhen 53c6f12693 (svn r19342) -Codechange: Move inclination update functions to GroundVehicle. 15 years ago
terkhen 963f304f67 (svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
-Codechange: Move GetSlopeResistance to GroundVehicle.
15 years ago
terkhen 78dd849452 (svn r19339) -Codechange: Move acceleration functions to GroundVehicle. 15 years ago
terkhen 544b9e1f5d (svn r19338) -Codechange: Move the acceleration cache to GroundVehicle. 15 years ago
terkhen bd9205bdf2 (svn r19337) -Codechange: Create the GroundVehicle class. 15 years ago
terkhen 4921477a88 (svn r19336) -Codechange: Move rail speed limit to its own function. 15 years ago
rubidium a7a2568985 (svn r19090) -Codechange: some comment coding style fixes 15 years ago
peter1138 8ef348311d (svn r18972) -Add: [NewGRF] Per-rail type speed limits. 15 years ago
terkhen 350185fa9e (svn r18960) -Codechange: Move acceleration-related values to a separated cache. 15 years ago
terkhen c9a3d4ea29 (svn r18939) -Codechange [FS#3545]: Move train slope steepness to its own function. 15 years ago