summaryrefslogtreecommitdiff
path: root/src/vehicle_func.h
AgeCommit message (Collapse)Author
2010-03-05(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.alberth
2010-02-28(svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to ↵alberth
TunnelBridgeIsFree() and return a CommandCost status.
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-11(svn r18781) -Codechange: pass the CommandCost to the callback instead of ↵rubidium
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.
2009-12-14(svn r18498) -Fix [FS#2616]: cloning of vehicles could create vehicles with ↵rubidium
invalid cargo sub types for the build year of the vehicle. Fall back to another cargo sub type with the exact same name, otherwise fallback to cargo sub type 0.
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-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 r17084) -Codechange: _age_cargo_skip_counter is common to all vehicle typessmatz
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-20(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().frosch
2009-07-13(svn r16813) -Codechange: make IsEngineCountable() member of Vehiclesmatz
2009-06-06(svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so ↵frosch
they can head for somewhere else instead of stumbling over a ghost.
2009-05-22(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.rubidium
2009-05-22(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriaterubidium
2009-03-13(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent ↵frosch
information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
2009-03-11(svn r15676) -Codechange: remove the need for BeginVehicleMove and merge ↵rubidium
VehiclePositionChanged and EndVehicleMove.
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-01-10(svn r14952) -Codechange: unify the "can vehicle go to station" testsrubidium
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-12-26(svn r14751) -Codechange: put VehicleEnterTile declaration where it should ↵smatz
be and use correct return type
2008-12-26(svn r14747) -Codechange: remove DeleteVehicleChain in favour of the vehicle ↵rubidium
destructor as that was already doing the same for a few vehicle types.
2008-10-19(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-09(svn r14285) -Fix [FS#2263]: A train inside a wormhole could free the ↵michi_cc
reservation of another train inside the wormhole.
2008-09-07(svn r14258) -Codechange: rework the way to query the vehicle hash to make ↵rubidium
sure it always results in the same irregardless of the order of the hash-linked-list. -Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
2008-08-16(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the ↵frosch
autoreplace kernel.
2008-08-01(svn r13912) -Codechange: remove some casts by returning the proper type ↵rubidium
instead of void*.
2008-07-24(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a ↵smatz
depot (callback 0x11) and give a warning about that
2008-05-28(svn r13307) -Codechange: Separate VehicleList and its two functions so only ↵peter1138
the 3 users include it, reducing dependencies on misc/smallvec.h
2008-05-26(svn r13266) -Codechange: Use SmallVector in GUIListpeter1138
2008-05-25(svn r13248) -Codechange: Use VehicleList for depot GUI.peter1138
2008-05-25(svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, ↵peter1138
simplifying calling code somewhat.
2008-05-25(svn r13240) -Codechange: More const-ness for GUI code.peter1138
2008-05-14(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)peter1138
2008-05-07(svn r12986) -Codechange: move the landscape and transport related types ↵rubidium
from openttd.h to their own headers.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-20(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpprubidium
2008-04-20(svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a ↵rubidium
uniform naming of the thing instead of using both names for the same thing.
2008-04-19(svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for ↵bjarni
DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost This allowed cleaning up the code in MaybeReplaceVehicle()
2008-04-11(svn r12658) -Codechange: unify a vast portion of the ↵rubidium
CmdSend<VehicleType>ToDepot commands.
2008-04-08(svn r12629) -Codechange: Split VehicleNeedsService() into ↵frosch
Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing(). -Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
2008-03-28(svn r12476) -Codechange: split type engine related types from engine.h (and ↵rubidium
openttd.h) to engine_type.h.
2008-03-28(svn r12472) -Codechange: remove unneeded declaration of ViewPort and ↵rubidium
DrawPixelInfo.
2008-01-18(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of ↵smatz
constants -Fix: refit button widget was not correctly updated
2008-01-16(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify ↵smatz
the code at some places
2008-01-09(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very ↵smatz
long track -Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements