summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2010-01-21(svn r18872) -Codechange: introduce PaletteID and use itrubidium
2010-01-18(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) ↵rubidium
wrapper functions
2010-01-15(svn r18812) -Codechange: make some functions in train.h functions of Train.rubidium
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-09(svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal ↵rubidium
wait counter; sometimes they might get into eachother's way
2009-12-27(svn r18642) -Fix [FS#3432]: when a company goes bankrupt and has vehicles ↵rubidium
on a drive through road stop that is not theirs, the 'filled' cache of the road stops would get corrupted
2009-12-20(svn r18571) -Fix (r18551): Vehicles not carrying any cargo (e.g. engines) ↵frosch
were not considered for sending to depot for replacement.
2009-12-20(svn r18568) -Codechange: Bail out early.frosch
2009-12-19(svn r18551) -Fix [FS#1762]: When autoreplace is the only allowed reason to ↵frosch
send vehicles to depot, first check some minimal requirements (engine availability, refittability) and a heuristic for the needed money.
2009-12-19(svn r18549) -Fix: first do the time-since-last-service check and only then ↵rubidium
determine whether autoreplace needs to take place. This way they will not keep autoreplacing continuously on failure, but only after some timeout.
2009-12-19(svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269rubidium
2009-12-13(svn r18479) -Fix (r6532): Direction is accounted for long before motion ↵peter1138
counter is updated
2009-12-12(svn r18468) -Codechange: make sure one never makes self-loops using ↵rubidium
Vehicle::SetNext
2009-12-04(svn r18402) -Codechange: unify/centralise the code for crashing vehiclesrubidium
2009-12-02(svn r18385) -Cleanup: remove the now unneeded multistop slot management coderubidium
2009-11-05(svn r17974) -Fix (r17926)[FS#3300]: C != Tfrosch
2009-11-01(svn r17930) -Fix (r17926): Aircraft were not carrying mail anymore, when ↵frosch
CB15 was in use.
2009-10-31(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string ↵alberth
before the details string. Gentlemen, swap your string parameters.
2009-10-31(svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail ↵frosch
consistent. Now always the cargo class decides.
2009-10-28(svn r17899) -Codechange: Deduplicate code for refitting vehicles.frosch
2009-10-28(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called ↵frosch
when they should. -Codechange: Move capacity calculation to a single function for all vehicle types, so the behaviour can be kept consistent easier.
2009-10-06(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when ↵frosch
a Engine * is already present.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-10-02(svn r17682) -Codechange: remove erroneous space before some commasrubidium
2009-09-20(svn r17594) -Fix: Vehicle image was not always updated when needed.frosch
2009-09-15(svn r17552) -Codechange: rename load_unload_time_rem to something more ↵rubidium
generic as it's used for more than just load/unload. Also add some documentation about where it is used.
2009-09-14(svn r17534) -Codechange: unify the naming of callback masks/flagsrubidium
2009-09-13(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty ↵frosch
for more consistency and distinguishability.
2009-09-01(svn r17363) -Fix [FS#3163] (r16717): feed autoreplace the front of ↵rubidium
vehicles, otherwise it gets distracted and bails out
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-17(svn r17209) -Codechange: Move cargo_type from (Rail|Road|Ship)VehicleInfo ↵frosch
to EngineInfo.
2009-08-06(svn r17091) -Fix (r17089)(r17090): regression test was rightsmatz
2009-08-06(svn r17089) -Codechange: move RunVehicleDayProc() to vehicle.cppsmatz
2009-08-06(svn r17085) -Codechange: unify the place where vehicle's cargo agessmatz
2009-08-06(svn r17084) -Codechange: _age_cargo_skip_counter is common to all vehicle typessmatz
2009-08-04(svn r17062) -Change: unify the naming of some 125 stringsrubidium
2009-07-22(svn r16920) -Codechange: shuffle some strings around to simplify looking up ↵rubidium
vehicle type specific strings for a specific message
2009-07-22(svn r16919) -Codechange: unify some more StringID w.r.t. their namingrubidium
2009-07-22(svn r16908) -Codechange: s/DepotWaypointReservation/DepotReservation/rubidium
2009-07-20(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().frosch
2009-07-16(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()smatz
2009-07-13(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraftsmatz
2009-07-13(svn r16813) -Codechange: make IsEngineCountable() member of Vehiclesmatz
2009-07-13(svn r16801) -Fix [FS#3022]: cargo payments weren't destroyed when a vehicle ↵rubidium
was destructed. This only happened when you crashed a vehicle while it was unloading.
2009-07-02(svn r16721) -Codechange: make Is/SetRoadVehicleFront, ↵rubidium
Is/Set/HasArticulatedPart member of RoadVehicle.
2009-07-01(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), ↵smatz
IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
2009-07-01(svn r16717) -Codechange: make IsFrontEngine() member of Trainsmatz
2009-06-29(svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for ↵rubidium
whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others: * cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder) * cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore * industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
2009-06-24(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()smatz
2009-06-09(svn r16544) -Codechange: use double-linked list for vehicle position caches ↵smatz
in order to improve performance (~5% with many vehicles)