summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
AgeCommit message (Collapse)Author
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
2010-01-27(svn r18931) -Fix: Disabling autoreplace rules might count invalid engines.frosch
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
2009-12-20(svn r18566) -Codechange: When both the union and intersection of refit ↵frosch
masks of articulated vehicles are needed, they can be determined at once.
2009-12-14(svn r18499) -Fix/Change/Feature [FS#3159]: autoreplace and autorenew always ↵rubidium
reset their cargo sub type to 0. Now find a sub cargo type with the exact same name and use that, otherwise fallback to 0. So cargo sub types can be maintained via autoreplace *if* the new vehicle supports the same cargo sub type.
2009-10-18(svn r17800) -Codechange: first steps into making CargoList a templaterubidium
2009-10-06(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.frosch
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-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-09-18(svn r17567) -Fix: some doxygen warningsrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-10(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following ↵frosch
vehicles, when autoreplacing/renewing them.
2009-08-04(svn r17062) -Change: unify the naming of some 125 stringsrubidium
2009-07-02(svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), ↵smatz
GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
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-27(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a ↵frosch
CargoArray instead of a pointer to a static array.
2009-06-06(svn r16527) -Codechange: use static member functions instead of simple ↵smatz
casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-06-01(svn r16498) -Codechange: Remove hardly used HASBITS.frosch
2009-05-22(svn r16393) -Codechange: move VehicleRail to Train.rubidium
2009-05-22(svn r16392) -Codechange: move some variables (the ones that aren't caches) ↵rubidium
from VehicleRail to Train
2009-05-22(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.rubidium
2009-05-18(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine toosmatz
2009-05-18(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of ↵smatz
PoolItem::IsValidID() and PoolItem::Get()
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-05-15(svn r16315) -Codechange: move the autorenew settings to a new ↵yexo
CompanySettings struct
2009-03-12(svn r15692) -Fix [FS#2721]: Just sell the old engines after ↵frosch
autorenew/replace. Don't bother about trains exceeding the trainlimit, which will be sold anyway.
2009-03-12(svn r15680) -Cleanup: remove redundant commentsmatz
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium