Age | Commit message (Collapse) | Author |
|
|
|
road vehicles and trains.
|
|
|
|
|
|
some headers
|
|
|
|
|
|
if a header require a header make it include that header
|
|
masks of articulated vehicles are needed, they can be determined at once.
|
|
|
|
vehicle callback.
|
|
|
|
|
|
EngineInfo::refit_mask during initialisation.
|
|
set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail.
|
|
|
|
|
|
GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
|
|
functions
|
|
Is/Set/HasArticulatedPart member of RoadVehicle.
|
|
Set/ClearArticulatedPart(), Set/ClearWagon(), Set/ClearEngine(), Set/ClearFreeWagon() and Set/ClearMultiheaded() members of Train
|
|
IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
|
|
CargoArray instead of a pointer to a static array.
|
|
casts when converting Vehicle to specialised vehicle types. Includes safety check
|
|
assigned
|
|
unnecessarily add it.
|
|
and remove two of them.
|
|
infinite loop due to v->Next() pointing to v itself.
|
|
struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
|
|
|
|
from VehicleRail to Train
|
|
|
|
|
|
time, binary size and run time (with asserts disabled) should be improved
|
|
|
|
creating vehicles, instead of arbitrary sprites not related to the vehicle. (though that also applies to the question mark)
|
|
|
|
use it everywhere, so CB 36 is also used everywhere.
|
|
information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
|
|
VehiclePositionChanged and EndVehicleMove.
|
|
so possible default constructors don't overwrite the values.
|
|
articulated engine has been built. (except 0x16)
|
|
articulated part.
|
|
which cannot accept CT_INVALID.
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
Note: It is intentional that you cannot control refittability by CB 36.
|
|
|
|
instead of trying to make it and check for NULL.
|
|
call callback 36 capacity, also call it for all articulated parts.
|
|
vehicles during autoreplace.
|
|
|
|
called for the first part of rail and road vehicles.
|