Age | Commit message (Collapse) | Author |
|
CargoArray instead of a pointer to a static array.
|
|
casts when converting Vehicle to specialised vehicle types. Includes safety check
|
|
|
|
|
|
from VehicleRail to Train
|
|
|
|
|
|
PoolItem::IsValidID() and PoolItem::Get()
|
|
PoolItem::IsValidID(index)
|
|
|
|
CompanySettings struct
|
|
autorenew/replace. Don't bother about trains exceeding the trainlimit, which will be sold anyway.
|
|
|
|
|
|
|
|
(optional) parameter.
|
|
|
|
|
|
client so it is immediatelly clear which one you are working with.
|
|
|
|
|
|
wagon chains.
|
|
president and company renaming commands, too
|
|
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
|
|
|
|
|
|
Note: Proper indenting in next commit.
|
|
|
|
|
|
autoreplace kernel.
|
|
replacement which CmdSetAutoReplace() did not accept.
|
|
the old vehicle did not carry anything but the new one did.
|
|
vehicles during autoreplace.
|
|
depot (callback 0x11) and give a warning about that
|
|
ran in the context of autoreplace or not
|
|
vehicle_gui.h.
|
|
AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
|
|
pointer to the front vehicle in certain cases
Now it's updated when it's the front vehicle and it's every time it's the front vehicle and only if it's the front vehicle (nomatter if the replacement works or not)
|
|
vehicles right away if we fail to replace them and certainly not presume their data is valid
|
|
include the cargo packets in the vehicle as well
|
|
and data for a vehicle (or chain of vehicles)
Autoreplace uses this with the following benefits:
-Mass autoreplace (the button in the depot window) will now estimate costs correctly
-Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
Thanks to Ammler for testing this
|
|
it's own
|
|
|
|
replacement is needed and if so, to which EngineID
It's designed to save a bit of CPU time, specially if the replacement isn't buildable (think autorenew of old vehicle)
|
|
DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
This allowed cleaning up the code in MaybeReplaceVehicle()
|
|
depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
|
|
|
|
unneeded inclusions of engine.h and/or replace them with engine_type.h.
|
|
|
|
|