Age | Commit message (Collapse) | Author |
|
list.
|
|
|
|
seperate class
|
|
|
|
AirportSpec
-Fix: [NewGRF] return the ttd airport type in station var 0xF1
|
|
what NARS expects
|
|
if a header require a header make it include that header
|
|
wait counter; sometimes they might get into eachother's way
|
|
including of newgrf_cargo.h
|
|
|
|
it is only needed for them.
|
|
0x36. Based on Terkhen's work.
|
|
generic as it's used for more than just load/unload. Also add some documentation about where it is used.
|
|
|
|
in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
|
|
|
|
IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
|
|
|
|
prevent unnecessary inclusion newgrf.h anyway
|
|
|
|
|
|
|
|
wrong results due to OpenTTD codechanges
|
|
casts when converting Vehicle to specialised vehicle types. Includes safety check
|
|
vehicles in more places. Esp. they were only invalidated for trains.
|
|
broken due to someone confusing similiary named variables.
|
|
const is (accidentally?) removed using C-style casts.
|
|
unnecessarily add it.
|
|
|
|
instead of using a big union
|
|
struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
|
|
|
|
from VehicleRail to Train
|
|
|
|
|
|
|
|
|
|
PoolItem::IsValidID(index)
|
|
|
|
printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
|
|
|
|
sources too
|
|
(though spec stated they are). Caching these variables can yield a 10+% speed increase when those vehicle variables are queried often.
|
|
list.
|
|
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.
|
|
parts use the colour scheme of the engine, but not its recolour callback, nor its 2CC flag. Same applies to roadvehicles.
|
|
roadvehicles were not applied.
|
|
CT_INVALID is possible.
|
|
the most-common-subcargo of the most-common-cargo. If nothing is transported 0x..FFFF00 should be returned.
|
|
|