Commit Graph

98 Commits (33ab403be83997f4afb78aaf250a447c12c424cb)

Author SHA1 Message Date
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
rubidium 89cc6d871e (svn r18854) -Codechange [FS#3539]: unconflict acceleration type as 'status' and rail property (Terhken) 15 years ago
rubidium ff69edfc17 (svn r18838) -Codechange [FS#3524]: reorganisation of the train acceleration code plus some minor optimisations (Terkhen) 15 years ago
rubidium 64c249d50e (svn r18836) -Codechange: make TrainUpdateSpeed a class function and update some comments (Terkhen) 15 years ago
rubidium ea240269dc (svn r18812) -Codechange: make some functions in train.h functions of Train. 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 26b203e3ff (svn r18781) -Codechange: pass the CommandCost to the callback instead of whether it succeeded or not.
-Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
15 years ago
rubidium 8bdeb2cab6 (svn r18779) -Codechange: merge the command callbacks of the primary vehicles; they are identical 15 years ago
rubidium ad8d6e8dd2 (svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way 15 years ago
rubidium f90086b696 (svn r18484) -Codechange: simplify the Is(Stopped)InDepot functions for trains 15 years ago
rubidium e80eabcc2c (svn r18465) -Codechange: simplify CheckTrainInDepot and remove some unneeded wrapper functions 15 years ago
rubidium 6600610e47 (svn r18402) -Codechange: unify/centralise the code for crashing vehicles 15 years ago
smatz be3ee603b1 (svn r17688) -Fix (r17684): incorrect comments 15 years ago
frosch a9717da0d3 (svn r17684) -Fix: tcache.first_engine and rcache.first_engine need to be set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail. 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
frosch f1f4edfbd1 (svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it. 15 years ago
frosch 12ea92a257 (svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables. 15 years ago
smatz 0b4b9dd764 (svn r16857) -Fix [FS#3036](r16652): crash when train partially in depot crashed 15 years ago
smatz 32bf91aa41 (svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train 15 years ago
rubidium 18fbe0aac4 (svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions 15 years ago
smatz 9b10bc9cdf (svn r16720) -Codechange: make Set/ClearFrontEngine(), Set/ClearArticulatedPart(), Set/ClearWagon(), Set/ClearEngine(), Set/ClearFreeWagon() and Set/ClearMultiheaded() members of Train 15 years ago
smatz 1e1f0ab2cf (svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train 15 years ago
smatz 378d01f2f4 (svn r16718) -Codechange: make IsFreeWagon() member of Train 15 years ago
smatz 20fedeb3d6 (svn r16717) -Codechange: make IsFrontEngine() member of Train 15 years ago
rubidium d7eb9f9d0e (svn r16505) -Fix [FS#2951] (r16472): since g++ 4.4 the implicit (default) constructor will zero the whole class. This caused all vehicle indices to be 0, which causes all kinds of trouble. 15 years ago
smatz c5240c770c (svn r16494) -Codechange: cache train's speed limit caused by curves 15 years ago
smatz 11d88765cc (svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor instead of constructor of each vehicle type 15 years ago
smatz 01e5c536a7 (svn r16445) -Codechange: update old comments (Yexo) 15 years ago
smatz 0c53f04c07 (svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types 15 years ago
rubidium 4c0542c17f (svn r16393) -Codechange: move VehicleRail to Train. 15 years ago
rubidium 6350648a6c (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 15 years ago
rubidium 1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
rubidium 86fc432293 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 15 years ago
smatz 70d3ed15c8 (svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted 15 years ago
rubidium 4c707c7414 (svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station. 15 years ago
frosch 61a893d6fd (svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions. 16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago