summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
AgeCommit message (Collapse)Author
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-01-14Fix #7670: prevent useless pathfinder run for blocked vehiclesglx22
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-05Fix #7611: keeps news about accidents around after vehicle is cleaned up (#8497)Patric Stout
When a vehicle is cleaned up, all news that points to the news is also removed. This was a bit evil, as it would also remove any news related to crashed, acting like the crash never happened. This left players a bit in the dark what was going on exactly.
2021-01-05Codechange: create MutableSpriteCache to remove the need to cast Vehicle to ↵Matt Kimber
a mutable type in render methods
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
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-08Add: Road vehicle path cache. (#7261)PeterN
2019-01-31Cleanup: [NPF] Remove unused parameter.J0an Josep
2019-01-19Change: Add path cache for ships.Peter Nelson
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-22Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)PeterN
The value is either unused or always the same as this->direction.
2018-04-30Codechange: Use TileAddBy(Diag)Dir when possible.J0anJosep
2017-03-20(svn r27814) -Change: Remove _roadveh_depot_exit_trackdirpeter1138
_roadveh_depot_exit_trackdir was just a copy of DiagDirToDiagTrackdir. (cirdan)
2017-03-20(svn r27813) -Change: Remove _road_enter_dir_to_reachable_trackdirspeter1138
_road_enter_dir_to_reachable_trackdirs was just a copy of DiagdirReachesTrackdirs. (cirdan)
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.
2015-03-16(svn r27190) -Fix [FS#6255] (r27106): Original road vehicle acceleration ↵frosch
crashed for vehicles taking over.
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2015-01-01(svn r27106) -Fix [FS#6176]: Use the actual max speed of the vehicle in ↵michi_cc
front when determining if a RV can overtake.
2014-10-04(svn r26951) -Codechange: Do the GUI-scale dance for vehicle, depot, and ↵peter1138
purchase lists.
2014-09-21(svn r26888) -Codechange: use ints for some z-levels of vehicles (ic111)rubidium
2014-09-20(svn r26863) -Codechange: move a number of Vehicle* functions into the ↵rubidium
Vehicle class
2014-05-01(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed ↵fonsinchen
private
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-12-25(svn r26180) -Fix: Visual effects did not work for articulated RV parts.frosch
2013-12-22(svn r26169) -Fix-ish [FS#5831-ish]: Unify the time a RV needs to travel ↵frosch
through a curve.
2013-12-08(svn r26152) -Revert/Fix (r26118) [FS#5822]: While the condition is ↵frosch
non-sense, the 'true' case is required for articulated parts and the 'false' case is required for savegame compatibility.
2013-11-26(svn r26130) -Codechange: add some guards against using invalid image indicesrubidium
2013-11-26(svn r26118) -Fix-ish?: comparing the old Direction to the possibly new ↵rubidium
state containing a TrackDir... well comparing apples and pears. Occasionally they would be the same and occasionally not; at least without any logic behind it. Since the occasions that the false branch was taken never resulted in a bug report, I highly doubt that removing it completely affects anything... except the visual speed of cornering in a numer of corners (<50%) and visual speed in an old style road stop.
2013-08-04(svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette ↵frosch
during (un)loading.
2013-06-04(svn r25319) -Fix [FS#5570]: crash when train with reserved cargo vanishesrubidium
2013-05-19(svn r25259) -Codechange: track capacities and usage of linksrubidium
2013-05-06(svn r25222) -Change: Unify the behaviour of Vehicle::tick_counter between ↵frosch
RV and trains by incrementing it also for articulated RV parts.
2013-04-13(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() ↵frosch
and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
2013-04-08(svn r25167) -Fix [FS#5523] (r24832): Original train and rv acceleration did ↵frosch
no longer respect bridge speed limits.
2013-02-14(svn r24998) -Fix [FS#5137]: Set vehicle's service interval is percent flag ↵rubidium
appropriately on creation (peter1138)
2013-02-14(svn r24994) -Codechange: Replace access to service_interval with accessors ↵rubidium
(peter1138)
2013-02-03(svn r24966) -Fix [FS#5228]: trams would get stuck on waterrubidium
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-12-23(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list ↵michi_cc
sprites. (Based on patch by Eddi)
2012-12-20(svn r24832) -Fix [FS#5397]: [NewGRF] Take bridge speed limits into account ↵michi_cc
for vehicle variable 4C.
2012-11-12(svn r24713) -Fix [FS#5262]: [NewGRF] Tolerate old NewGRFs returning invalid ↵frosch
values via CB 11.
2012-07-07(svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave ↵frosch
consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked.
2012-07-07(svn r24383) -Fix: a comment.frosch
2012-07-07(svn r24382) -Fix: Call Vehicle::IsStoppedInDepot only for the first vehicle ↵frosch
in a chain (i.e. primary vehicle or free wagon).