Commit Graph

319 Commits (04f659e768486da4fc73a97a633f140d9733bf78)

Author SHA1 Message Date
JMcKiern 04f659e768 Fix: Some typos found using codespell 5 years ago
peter1138 ec2656ab7e Codechange: Restrict docking points of docks. 5 years ago
peter1138 f538179878 Feature: Multi-tile docks and docking points. 5 years ago
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 5 years ago
Samu fb6e31ca43 Cleanup 3f32711: Don't apply forbid 90 deg turn settings for ships. 5 years ago
peter1138 66bed86bbb Fix #7062, Revert 7af53d7588: Don't test ship max order distance when pathfinding. 5 years ago
Charles Pigott fe448a2616 Remove: OPF 5 years ago
peter1138 a69eb5f516 Fix #7334: Ship lost after crossing bridge due to path cache not being consumed while on final bridge end. 5 years ago
Peter Nelson 3f327116db Change: Don't apply forbid 90 deg turn settings to ships. 5 years ago
J0an Josep c4fe46a475 Fix #7244, 6ca637b8c1: OPF doesn't take 90 deg turns into account. 5 years ago
J0an Josep 6ca637b8c1 Fix #7226: Don't call ship pathfinders if there is no available track due to "forbid 90 deg turns". 5 years ago
Peter Nelson 0b10678050 Change: Make ships stop in locks to move up/down instead of following the slope. 5 years ago
Peter Nelson 33e3f49161 Fix #7119: When rotating a ship, apply an additional offset to avoid movement glitch. 5 years ago
J0an Josep 029c48cf4a Cleanup: [NPF] Remove unused parameter. 5 years ago
J0an Josep 96c5e5e73a Cleanup: [NPF] Remove unused parameters. 5 years ago
J0an Josep a5836874ef Codechange: Use track functions. 5 years ago
Peter Nelson 225790892d Change: Make ships stop and change direction slowly instead of instantly turning. 5 years ago
Peter Nelson f35b135e17 Change 81330b8d6e: Cached path only needs to be cleared if it was found to be invalid. 5 years ago
Peter Nelson 81330b8d6e Change: Add path cache for ships. 5 years ago
Peter Nelson 6b0a467a50 Change: Obey forbid_90_deg_turns when choosing available track with no destination. 6 years ago
Peter Nelson 7284b593c7 Change: When ship is lost, pick first available track instead of a random track. 6 years ago
Peter Nelson 8b64204418 Codechange: Replace trackbit lookup table with existing functions. 6 years ago
Peter Nelson 7af53d7588 Codechange: Use const instead of magic number for ship order distance. Allow slightly further distance when following orders. 6 years ago
Peter Nelson b98887c4a0 Change: Allow only one ship to leave depot at a time. 6 years ago
Peter Nelson ebddd596c7 Change: Don't pathfind with no destination or if destination is known to be too far. 6 years ago
Peter Nelson 6a38a3f5df Change: Don't leave ship depot with no orders. 6 years ago
Charles Pigott f5b1115039 Doc: Lots and lots of doxymentation fixes 6 years ago
Niels Martin Hansen 2a868b9f3b Feature: Framerate display window (#6822)
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.
6 years ago
PeterN c2a7728084
Fix: Prevent ships moving into docks after finishing (un)loading. (#6791) 6 years ago
PeterN a07394a63a
Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)
The value is either unused or always the same as this->direction.
6 years ago
peter1138 c973f65acb (svn r27858) -Change [FS#6560]: Add missing game script event for ships arriving at a station. (juanjo) 7 years ago
peter1138 3c7dc746d5 (svn r27807) -Codechange: Remove _ship_leave_depot_offs
There is already TileOffsByDiagDir for that. (cirdan)
7 years ago
peter1138 2a555480bd (svn r27806) -Codechange: Remove function ShipGetNewDirection
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)
7 years ago
peter1138 4f9fd074b8 (svn r27805) -Codechange: Remove function ShipGetNewDirectionFromTiles
The only user of ShipGetNewDirectionFromTiles can be better
served by DiagdirBetweenTiles, so remove the former. (cirdan)
7 years ago
frosch c175067ed9 (svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw. 8 years ago
frosch d2393b4f6c (svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq. 8 years ago
frosch a8080b6256 (svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad(). 10 years ago
rubidium 6c2abf0930 (svn r26863) -Codechange: move a number of Vehicle* functions into the Vehicle class 10 years ago
fonsinchen c915d9fa55 (svn r26546) -Codechange: Make order wait_time, travel_time and max_speed private 10 years ago
rubidium 0463dbdc9e (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
rubidium d2ba772f6a (svn r26130) -Codechange: add some guards against using invalid image indices 11 years ago
frosch 5bda07c10c (svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette during (un)loading. 11 years ago
rubidium 3947453277 (svn r25259) -Codechange: track capacities and usage of links 11 years ago
rubidium ced17303c2 (svn r24998) -Fix [FS#5137]: Set vehicle's service interval is percent flag appropriately on creation (peter1138) 12 years ago
rubidium c77cd1f409 (svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138) 12 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
michi_cc 245e32a10e (svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list sprites. (Based on patch by Eddi) 12 years ago
yexo 6853df46c7 (svn r24539) -Codechange [FS#5260]: make code simpler by using IsValidTile instead of manually checking the bounds (juanjo) 12 years ago
frosch d17ec934f5 (svn r24481) -Feature [FS#5127]: Make the pathfinder decide whether ships shall leave depots towards north or south. 12 years ago
frosch 0f0f027379 (svn r24480) -Doc: Doxygenize ChooseShipTrack(). 12 years ago