summaryrefslogtreecommitdiff
path: root/src/engine.cpp
AgeCommit message (Collapse)Author
2021-04-30Codechange: Use C++ features for train wagon overrides. (#9141)PeterN
This removes the need for C-style array management and allows use of iterators to perform wagon override lookups.
2021-04-17Fix: Do not unlock railtypes when enabling wagons with GameScriptdP
2021-04-01Codechange: Suppress warnings when asserts are disabled (#8917)Patric Stout
2021-03-20Fix: Recompute road/railtype availability after disabling the enginedP
2021-01-08Fix 85a49a0d: invalidate airport toolbar when new planes become available ↵Patric Stout
(#8532) Otherwise if the airport button is disabled, it will remain disabled until you close/open the toolbar again.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-03Cleanup 9f42358: Make also reliability_start randomised independent of ↵frosch
introduction date.
2021-01-03Cleanup 8139b14: Move a comment back to the line it belongs to, and add a ↵frosch
comment for new code.
2020-12-31Change #8325: Make engine reliability independent of introduction date (#8470)SamuXarick
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-15Codechange: Make use of the improved C++17 emplace_back function.Michael Lutz
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2020-01-15Feature: GS method to control engine availability for a specific company (#7791)Pavel Stupnikov
* Feature: GS method to allow company to use an engine before its introduction date * Feature: GS method to retire an engine early for a specific company
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_ENGINES with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_COMPANIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-02Change: Synchronize introduction date and reliability randomness across ↵Eddi-z
vehicles with the same base introduction date (#7147)
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-09-30Fix #6920: Make 9.8m/s^2 a common constant for TE-calculationJohannes E. Krause
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2017-03-18(svn r27797) -Add: Display aircraft type in its vehicle window (patch by Samu)alberth
2016-12-20(svn r27700) -Codechange: Simplify railtype date introduction. A check that ↵frosch
is safe to run every day before the last railtype has been introduced, is also safe to run after the last railtype has been introduced.
2016-06-09(svn r27598) -Fix: Company 0 could accept engine previews before they were ↵frosch
offered.
2016-05-22(svn r27578) -Fix [FS#6454]: Vehicles could not be hidden from the purchase ↵frosch
list when they were in exclusive preview.
2014-09-07(svn r26802) -Add: Command to set visibility of an engine for a company ↵alberth
(based on patch by Juanjo).
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-07-31(svn r25640) -Fix: Do not suggest a start date for the game when there will ↵alberth
be no vehicles available at all.
2013-07-31(svn r25639) -Codechange: Rename both 'STR_ERROR_NO_VEHICLES_AVAILABLE*' ↵alberth
strings.
2013-07-02(svn r25553) -Fix [FS#5530]: provide a warning when no vehicles are ↵rubidium
available, and tell what to do in that case
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-09(svn r24813) -Change: Offer engine previews only to companies which actually ↵frosch
use the particular vehicle-type/cargo-type combination.
2012-12-09(svn r24812) -Fix: Close pending preview windows when the engine is ↵frosch
introduced to everyone.
2012-12-09(svn r24811) -Add: Close engine preview window when another client accepts it.frosch
2012-12-09(svn r24810) -Fix: Make engine preview offers more robust wrt. changes in ↵frosch
the company ranking.
2012-11-01(svn r24660) -Feature: do not display the preview window for disabled ↵yexo
vehicle types (Eagle_rainbow)
2012-09-21(svn r24535) -Doc: Two additions, lots of small spelling fixes, and some ↵alberth
Doxygen improvements.
2012-08-21(svn r24492) -Add: [NoGo] Useful behaviour for GSEngine::IsValidEngine and ↵frosch
GSEngine::IsBuildable when outside GSCompanyMode scope.
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-05-05(svn r24200) -Fix [FS#5149]: Invalidate build vehicle windows every month, ↵frosch
in case they need resorting due to changed reliabilities.
2012-01-28(svn r23861) -Feature: [NewGRF] New algorithm (activated via an engine flag) ↵frosch
to determine the capacity of vehicles. This allows vehicles to better control the capacity for cargotypes which they know; and let cargo NewGRFs influence the capacity for cargos the vehicle NewGRF does not know, but which the vehicle is refittable to due to cargo classes.
2012-01-28(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity ↵frosch
multipliers when refitting vehicles, which do not use callback 15.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium