summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
AgeCommit message (Collapse)Author
2019-01-26Codechange: Use track functions.J0an Josep
2019-01-24Change: Make ships stop and change direction slowly instead of instantly ↵Peter Nelson
turning.
2019-01-20Change 81330b8d6e: Cached path only needs to be cleared if it was found to ↵Peter Nelson
be invalid.
2019-01-19Change: Add path cache for ships.Peter Nelson
2019-01-14Change: Obey forbid_90_deg_turns when choosing available track with no ↵Peter Nelson
destination.
2019-01-14Change: When ship is lost, pick first available track instead of a random track.Peter Nelson
2019-01-14Codechange: Replace trackbit lookup table with existing functions.Peter Nelson
2019-01-14Codechange: Use const instead of magic number for ship order distance. Allow ↵Peter Nelson
slightly further distance when following orders.
2019-01-14Change: Allow only one ship to leave depot at a time.Peter Nelson
2019-01-14Change: Don't pathfind with no destination or if destination is known to be ↵Peter Nelson
too far.
2019-01-14Change: Don't leave ship depot with no orders.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-06-14Fix: Prevent ships moving into docks after finishing (un)loading. (#6791)PeterN
2018-05-22Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)PeterN
The value is either unused or always the same as this->direction.
2017-04-23(svn r27858) -Change [FS#6560]: Add missing game script event for ships ↵peter1138
arriving at a station. (juanjo)
2017-03-19(svn r27807) -Codechange: Remove _ship_leave_depot_offspeter1138
There is already TileOffsByDiagDir for that. (cirdan)
2017-03-19(svn r27806) -Codechange: Remove function ShipGetNewDirectionpeter1138
ShipGetNewDirection has no side effects and its return value is ignored by its only caller, so do away with it. Also remove now unused _new_vehicle_direction_table. (cirdan)
2017-03-19(svn r27805) -Codechange: Remove function ShipGetNewDirectionFromTilespeter1138
The only user of ShipGetNewDirectionFromTiles can be better served by DiagdirBetweenTiles, so remove the former. (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-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
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-11-26(svn r26130) -Codechange: add some guards against using invalid image indicesrubidium
2013-08-04(svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette ↵frosch
during (un)loading.
2013-05-19(svn r25259) -Codechange: track capacities and usage of linksrubidium
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-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list ↵michi_cc
sprites. (Based on patch by Eddi)
2012-09-21(svn r24539) -Codechange [FS#5260]: make code simpler by using IsValidTile ↵yexo
instead of manually checking the bounds (juanjo)
2012-08-18(svn r24481) -Feature [FS#5127]: Make the pathfinder decide whether ships ↵frosch
shall leave depots towards north or south.
2012-08-18(svn r24480) -Doc: Doxygenize ChooseShipTrack().frosch
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-06-06(svn r24328) -Codechange: Simplify some silly code.frosch
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-02-14(svn r23947) -Feature: Timetabled maximum travel speeds for non-flying vehicles.michi_cc
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-02(svn r23714) -Codechange: don't mix Viewport with non-viewport codetruebrain
2012-01-02(svn r23713) -Codechange: split VehicleMove() into two functions, to ↵truebrain
minimalize the work done where possible
2011-12-16(svn r23540) -Codechange: unify and document vehicle widgetsrubidium
2011-11-29(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)truebrain
2011-11-24(svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.peter1138
2011-11-09(svn r23173) -Codechange: Rename GetVehicleCapacity() to ↵frosch
Engine::DetermineCapacity().
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-11-01(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to ↵frosch
draw different sprites on the map and in various GUIs.
2011-11-01(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and ↵frosch
Vehicle to simplify code.
2011-11-01(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.frosch