Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
|
|
vehicles.
|
|
through a method GetNumOrders() (PhilSophus)
|
|
the map, which is now done by a manual key sorter on SmallMap. This fixes engine ID list sorting.
|
|
time and binary size
|
|
according to the NewGRF spec (Maedhros)
|
|
|
|
|
|
client so it is immediatelly clear which one you are working with.
|
|
in the NewGRF code, too
|
|
|
|
list position (mostly function renaming)
|
|
with all other structs/classes that are in a pool.
|
|
zero sprites.
|
|
purchase list.
|
|
7/9/D and VarAction2 (23/24 or A3/A4)
Add access to (long format) building year, in Variational Action2 Variable 49 for Vehicles
|
|
without asserts
|
|
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
|
|
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
|
|
|
|
something more than whitespace as description of files that don't have a description.
|