summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2021-02-05Codechange: Apply coding style (#8640)SamuXarick
* Fix: Missing or needed spaces * Codechange: Remove space * Codechange: Remove space * Codechange: More missing spaces * Codechange: Missing spaces * Codechange: Remove space * Codechange: Remove space
2021-01-17Fix eeb88e8: Trains reversed while paused do not correctly update sprite ↵Matt Kimber
bounds (#8540)
2021-01-08Change: Remove disable_unsuitable_building settingCharles Pigott
This setting is no longer useful, as you can now always build roads, canals, etc.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-05Codechange: consider vehicle co-ordinates when identifying viewport ↵Matt Kimber
candidate as using only the hash generates false positives
2021-01-05Codechange: create MutableSpriteCache to remove the need to cast Vehicle to ↵Matt Kimber
a mutable type in render methods
2021-01-05Codechange: improve performance for complex vehicle chains by resolving ↵Matt Kimber
sprites less often
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-09-25Change: Service depot also reset breakdown chance.Galigator
2020-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2020-06-28Fix #8216: Don't show floating text on autoreplace if cost is 0Charles Pigott
2020-05-21Codechange: Replace SmallPair with std::pair.Michael Lutz
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
2020-04-06Fix #8064: Incorrect display of refit capacityglx
2020-01-03Fix #7891: Actually check the vehicle type before castingSamuXarick
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 station related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Cleanup: Remove unused size template parameters from SmallMap and ↵Henry Wilson
Auto[Free|Delete]SmallVector
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Include() with include()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replaced SmallVector::Reset() with std::vector::clear() + ↵Henry Wilson
shrink_to_fit()
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-25Change: Do not display a newspaper about old vehicles for which replacement ↵stormcone
is activated.
2019-02-10Fix 148e5b41d6: Uninitialized variable usage. (#7216)PeterN
2019-02-10Change: Skip reliability decay if servicing is disabledEddi-z
2019-02-10Fix #7197: Invalidate depot buttons when necessary. (#7212)PeterN
2019-02-08Fix: trains cancelling their pending reversal when ordered to go to a depot ↵Henry Wilson
behind them Previously, if a train had been ordered to reverse, and while it was slowing down, was ordered to travel to a depot that is behind it, the train would continue forwards. Also when a train had been ordered to reverse, and while it was slowing down, was ordered to travel to a depot that is in front of it, the train would not cancel the reversal. In both cases the train would travel away from the target depot. Trains in this situation now behave correctly and will travel towards the depot.
2019-02-06Add #5006: Flag to hide rail type from construction.Peter Nelson
2019-02-02Fix: DMU/EMU livery should apply to passenger carriages with DMU/EMU engines.Peter Nelson
2019-01-31Feature: Group liveries, and livery window usability enhancements. (#7108)PeterN
* Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
2019-01-19Change: Add path cache for ships.Peter Nelson
2019-01-17Fix: Some code and comment typosnikolas
Found with codespell
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-07-19Feature: Framerate display window (#6822)Niels Martin Hansen
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2018-03-11(svn r27986) -Codechange: Name magic constants in the vehicle position hash ↵frosch
functions.
2017-08-31(svn r27904) -Fix [FS#6593]: When last vehicle is removed from shared orders ↵adf88
group, hide the "Stop sharing" button in vehile orders window
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-03-24(svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display ↵peter1138
to group vehicle list (mtm, JGR)
2016-10-16(svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites.frosch
2016-10-16(svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw.frosch
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2016-05-29(svn r27584) -Codechange: Add some assertions about Vehicle::cargo_payment.frosch
2015-10-30(svn r27426) -Change: Round loading percentage in loading indicators and ↵frosch
conditional orders towards 50%, so that 0% and 100% mean completely empty or full.