summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
AgeCommit message (Collapse)Author
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-07(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity ↵frosch
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2013-10-13(svn r25865) -Codechange: Refactor detecting of depot vehicle type of a tile ↵zuu
to a new function, GetDepotVehicleType (cirdan, LordAro)
2013-08-06(svn r25698) -Fix [FS#5700]: Autoreplace/renew also refits free wagons.frosch
2013-08-04(svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette ↵frosch
during (un)loading.
2013-05-19(svn r25259) -Codechange: track capacities and usage of linksrubidium
2013-02-24(svn r25040) -Add: a mode to CmdRefitVehicle to preserve the current ↵frosch
subtype, also when refitting multiple vehicles.
2013-02-17(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to ↵rubidium
CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
2013-02-14(svn r24998) -Fix [FS#5137]: Set vehicle's service interval is percent flag ↵rubidium
appropriately on creation (peter1138)
2013-02-14(svn r24995) -Codechange: Add flags to vehicle service interval for custom & ↵rubidium
ispercent (peter1138)
2013-02-14(svn r24994) -Codechange: Replace access to service_interval with accessors ↵rubidium
(peter1138)
2012-10-01(svn r24567) -Fix [FS#5261]: Non-train vehicle lists were not resorted when ↵frosch
vehicles were renamed. (Juanjo)
2012-07-07(svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave ↵frosch
consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked.
2012-07-07(svn r24382) -Fix: Call Vehicle::IsStoppedInDepot only for the first vehicle ↵frosch
in a chain (i.e. primary vehicle or free wagon).
2012-01-24(svn r23848) -Fix: Even if A == B, A can make more sense than B.frosch
2012-01-09(svn r23783) -Cleanup: remove ancient but not needed command flagrubidium
2012-01-03(svn r23745) -Fix (r23087): If autorefit fails, count the vehicle capacity ↵frosch
nevertheless, if it is already carrying the right thing.
2012-01-03(svn r23743) -Fix [FS#4906]: Call CB 15E for all vehicles before actually ↵frosch
executing any refit.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-17(svn r23581) -Fix (r23518) [FS#4890]: Cloning of vehicles crashed.frosch
2011-12-16(svn r23540) -Codechange: unify and document vehicle widgetsrubidium
2011-12-14(svn r23518) -Fix (r23124): [NewGRF] The refit cost callback wasn't called ↵michi_cc
if only the subtype differed.
2011-12-13(svn r23504) -Feature: Aircraft range.michi_cc
2011-12-10(svn r23487) -Change/Fix: Make autoreplace, autorenew, cloning and autorefit ↵frosch
check all articulated parts of a vehicle to find a shared cargo subtype.
2011-11-09(svn r23173) -Codechange: Rename GetVehicleCapacity() to ↵frosch
Engine::DetermineCapacity().
2011-11-08(svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks ↵frosch
returning D0xx texts.
2011-11-06(svn r23127) -Fix [FS#4819] (r23086): Don't crash when refitting default ↵michi_cc
vehicles.
2011-11-06(svn r23124) -Change: [NewGRF] Interpret the result of the refit cost ↵michi_cc
callback as a signed value.
2011-11-04(svn r23112) -Codechange: Check if vehicle chain lengths stays constant when ↵michi_cc
auto-refitting.
2011-11-04(svn r23087) -Feature: Auto-refitting of vehicles during loading at a ↵michi_cc
station when the vehicle allows it.
2011-11-04(svn r23086) -Feature: [NewGRF] Callback to change refit cost depending on ↵michi_cc
old and new cargo type.
2011-11-01(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and ↵frosch
Vehicle to simplify code.
2011-11-01(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.frosch
2011-10-03(svn r22985) -Feature: Display autoreplace status in group GUI.frosch
2011-10-03(svn r22981) -Add: GroupStatistics for the ALL_GROUP.frosch
2011-10-03(svn r22980) -Add: GroupStatistics for DEFAULT_GROUP.frosch
2011-08-26(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)rubidium
2011-08-03(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.michi_cc
2011-04-17(svn r22337) -Fix: Overly specific error messagepeter1138
2011-02-07(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so ↵rubidium
it doesn't recompile everything that needs to be recompiled...
2011-01-29(svn r21926) -Fix [FS#4450](r21924): v != w.frosch
2011-01-29(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.terkhen
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
2011-01-23(svn r21904) -Fix: Include the capacity of non-refittable vehicles in the ↵frosch
refitted-capacity, if their cargo matches.
2011-01-23(svn r21902) -Fix: Do not count articulated parts when passing the number of ↵frosch
vehicles to refit to the command. That may exceed 8 bits.
2011-01-23(svn r21901) -Codechange: Save some bits in p2 of CmdRefitVehicle.frosch
2011-01-19(svn r21858) -Codechange: Give more similar names to ArticulatedPart functions.terkhen
2010-12-21(svn r21561) -Change: Allow to specify the number of vehicles to refit in ↵terkhen
the refit vehicle command.
2010-12-14(svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache.terkhen
2010-12-05(svn r21416) -Codechange: limit vehicle name by amount of characters, not bytesrubidium