summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
AgeCommit message (Collapse)Author
2021-02-18Fix: Autorenew failure advice due to bad refit being shown to all companies ↵Jonathan G Rennison
(#8681)
2021-01-08Fix #8153: Report incompatible cargo/order when autoreplace fails (#8169)Chris Stevens
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loopsglx22
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-22Add: [Script] ScriptEventVehicleAutoReplaced.glx
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Feature: When filtering purchase list by cargo type, make buy button perform ↵peter1138
a refit if required.
2019-01-13Fix #5978: Ensure group GUI stats and lists are invalidated properly (3298, ↵Joan Josep
Juanjo) (#7046)
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
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-04-13(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() ↵frosch
and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
2013-02-17(svn r25012) -Codechange: persistently keep 'reserved' cargo (for full-load ↵rubidium
improved loading) instead of calculating if for every cycle
2013-02-17(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to ↵rubidium
CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
2013-01-23(svn r24939) -Fix: Redraw autoreplace window properly in network games.peter1138
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-07-29(svn r24443) -Codechange: Move Vehicle::name to BaseConsist.frosch
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-05-05(svn r24201) -Fix [FS#5170]: Mark group list dirty when setting/clearing ↵frosch
autoreplace for an engine type.
2012-04-17(svn r24136) -Feature [FS#4465]: Autoreplace vehicles only when they get ↵michi_cc
old. (Vikthor)
2012-02-19(svn r23965) -Fix [FS#5070]: Refittability should never depend on the ↵frosch
current capacity of a vehicle.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-28(svn r23683) -Fix [FS#4912]-ish: when fitting another engine the cargo ↵rubidium
capacity of wagons could become lower, causing them to contain more than they should. This caused the cargo transfer from the replaced parts to put even more stuff in the already full wagon. Prevent this from happening by reducing the amount of cargo in the vehicle to the capacity when moving vehicles/wagons around, or when autoreplacing
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
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-04(svn r23087) -Feature: Auto-refitting of vehicles during loading at a ↵michi_cc
station when the vehicle allows it.
2011-10-03(svn r22985) -Feature: Display autoreplace status in group GUI.frosch
2011-09-02(svn r22876) -Fix [FS#4712]: Report an error in the news if ↵frosch
autoreplace/renew fails due to the engine type being no longer available.
2011-08-26(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)rubidium
2011-02-14(svn r22078) -Fix [FS#4499]: maximum train length interfered with wagon ↵rubidium
replacement when wagon removal was turned on
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 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-26(svn r21910) -Codechange: rename some autoreplace internal functions so they ↵rubidium
don't collide with globabl functions
2010-12-14(svn r21521) -Codechange: Unify some cached values that were present in both ↵terkhen
road vehicles and trains.
2010-10-30(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)alberth
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-20(svn r20583) -Fix: Autoreplace failed while attaching non-replaced wagons to ↵frosch
the new chain, if to-be-sold-engines would become front-engines and the unitnumber limit would be exceeded.
2010-08-19(svn r20572) -Codechange: free/reserve some bits in the wagon move command ↵rubidium
to increase the vehicle pool limit
2010-08-19(svn r20571) -Codechange: free/reserve some bits in the order commands to ↵rubidium
increase the vehicle pool limit
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-08-01(svn r20277) -Codechange: Move CmdSetAutoReplace() from company_cmd.cpp to ↵alberth
autoreplace_cmd.cpp.
2010-04-18(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer ↵frosch
divisions with rounding.
2010-03-20(svn r19494) -Codechange: Remove _error_message.alberth
2010-03-14(svn r19417) -Codechange: More code style, move variable declarations to ↵alberth
their first use.
2010-03-13(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.alberth