Age | Commit message (Collapse) | Author |
|
|
|
templated command traits.
This is using a non-intrusive type-traits like templated system, which
allows compile-time validation that the command table and the command
enum match up.
|
|
|
|
|
|
|
|
we had
While at it, replace OTTD_ASSERT with WITH_ASSERT, as this
is always set if assert() is valid. No matter if NDEBUG is set
or not.
|
|
|
|
This also changes ScriptEventVehicleAutoReplaced when replacing wagons:
The event is now only spawned, if the head engine changes, so only if the VehicleID of the consist changes.
Previously replacing wagons spawned an event with OldVehicleID==NewVehicleID.
|
|
|
|
|
|
(#8681)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a refit if required.
|
|
Juanjo) (#7046)
|
|
|
|
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
|
|
and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
|
|
improved loading) instead of calculating if for every cycle
|
|
CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
|
|
|
|
Eagle_rainbow)
|
|
|
|
consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked.
|
|
in a chain (i.e. primary vehicle or free wagon).
|
|
autoreplace for an engine type.
|
|
old. (Vikthor)
|
|
current capacity of a vehicle.
|
|
|
|
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
|
|
|
|
check all articulated parts of a vehicle to find a shared cargo subtype.
|
|
station when the vehicle allows it.
|
|
|
|
autoreplace/renew fails due to the engine type being no longer available.
|
|
|
|
replacement when wagon removal was turned on
|
|
it doesn't recompile everything that needs to be recompiled...
|
|
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
|
|
don't collide with globabl functions
|
|
road vehicles and trains.
|
|
|