summaryrefslogtreecommitdiff
path: root/src/engine_func.h
AgeCommit message (Collapse)Author
2009-03-10(svn r15666) -Fix [FS#2689]: sorting of engines in the purchase list didn't ↵rubidium
use the same numbers as the GUI showed, e.g. articulated parts weren't taken into accound when ordering by capacity.
2009-02-21(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, ↵frosch
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.
2009-02-08(svn r15412) -Fix: Clearing custom engine names could cause desyncs due to ↵peter1138
be client-side only; GUI parts of save/load of custom engine names also removed as it was never implemented.
2009-01-23(svn r15216) -Feature: native support for Transport Tycoon (Original) ↵smatz
savegames. Based on SVXConverter's source code and documentation by Roman Vetter
2009-01-20(svn r15166) -Codechange: reduce number of includes in afterload.cppsmatz
2009-01-08(svn r14926) -Feature: Automatically set last engine ageing year to the last ↵peter1138
'introduction year plus half model life', to allow engines later than 2050 to appear.
2008-12-16(svn r14683) -Change: only say a engine/vehicle is refittable when it can be ↵rubidium
refitted to at least two cargo type or when it has subcargos. NOTE: it is still possible that a vehicle is marked refittable when there is nothing to refit to, e.g. when only one subcargo is available but that cannot be determined without a vehicle chain.
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-05-27(svn r13287) -Codechange: move engine list gui code away from engine.cpp ↵peter1138
(and its headers) to engine_gui.cpp
2008-05-13(svn r13077) -Codechange: move function that updates cached num_engines to ↵smatz
engine.cpp, make it run only 1 loop
2008-05-07(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ ↵smatz
wrapper for CBlobT
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-29(svn r12924) -Feature: Introducing the so called 'engine pool' which ↵peter1138
primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-19(svn r12787) -Documentation: add/fix documentation of some functions. Patch ↵rubidium
by Alberth.
2008-03-31(svn r12490) -Codechange: rename engine.h to engine_func.h and remove ↵rubidium
unneeded inclusions of engine.h and/or replace them with engine_type.h.