Commit Graph

194 Commits (f8fb9fda6bb050d22b878dea16c4b5dfaa8607f9)

Author SHA1 Message Date
peter1138 c02ef3e456 Feature: Add NotRoadTypes (NRT) 6 years ago
peter1138 bcdb28249c Codechange: Use RAILTYPES_NONE instead of INVALID_RAILTYPES when not using rail.
INVALID_RAILTYPES, if it was accidentally tested, would match any railtype.
6 years ago
Charles Pigott 9f3928658b Codechange: Remove Track{dir,}{Bits,}Byte types 6 years ago
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 6 years ago
Charles Pigott fe448a2616 Remove: OPF 6 years ago
Michael Lutz cc5f175615 Feature: Railtype flags to allow/disallow 90 degree curves. (#7352) 6 years ago
PeterN 6c6971fb43
Add: Road vehicle path cache. (#7261) 6 years ago
Peter Nelson 7ca1793ec4 Change: Automatically use Trackdir node key as needed if ship curve penalties differ. 6 years ago
Peter Nelson b8a0107ad1 Change: Add configurable curve penalty for ships. 6 years ago
Peter Nelson 3f327116db Change: Don't apply forbid 90 deg turn settings to ships. 6 years ago
J0an Josep 029c48cf4a Cleanup: [NPF] Remove unused parameter. 6 years ago
J0an Josep d814dd3434 Cleanup: [NPF] Assert that a track has been chosen. 6 years ago
J0an Josep aa63517c92 Fix #7060: [NPF] Do not check whether ignored first tiles are end nodes. 6 years ago
J0an Josep 19be1f4ace Codechange: [NPF] Add some consts. 6 years ago
J0an Josep 96c5e5e73a Cleanup: [NPF] Remove unused parameters. 6 years ago
J0an Josep a5836874ef Codechange: Use track functions. 6 years ago
Peter Nelson 81330b8d6e Change: Add path cache for ships. 6 years ago
J0an Josep effb7da5b4 Doc: Fix spelling in comments. 6 years ago
J0an Josep c304aa50e9 Fix: [NPF] Don't look two-way for road vehicles when looking for a depot. Road vehicles shouldn't reverse all of a sudden. 6 years ago
Juanjo! 1db66a285e Codechange: [YAPF] Stop looking for an automatic servicing road depot when the cost of a path exceeds max. penalty. 6 years ago
Juanjo! edb7adf183 Codechange: [NPF] Stop looking for an automatic servicing (rail/road) depot when the cost of a path exceeds max. penalty. 6 years ago
J0an Josep 19a2f84943 Fix #7001: Pathfinders should see standard road stations as tiles where to reverse. 6 years ago
J0an Josep 16a91130a7 Codechange: Use INVALID_TRACKDIR instead of 0xFF. 6 years ago
Charles Pigott bb7353c02a Codechange: Some more null checks 6 years ago
Charles Pigott b5028efc1f Fix: Protect against a few out of bounds or uninitialised usage errors 6 years ago
Charles Pigott f5b1115039 Doc: Lots and lots of doxymentation fixes 6 years ago
J0anJosep d01c09fb73 Codechange: Use HasTrack(dir) to improve code readability. 6 years ago
J0anJosep 31ac11bddb Codechange: Increase readability of track functions and pathfinders. 6 years ago
Juanjo 85ebe20a76 Cleanup: Unnecessary assignation on FollowTileExit(): done previously on the function. 6 years ago
Juanjo 6a9df285d0 Codechange: Separate an assertion. More information if assert is triggered. 6 years ago
J0anJosep 79a551a83c Codechange: Use TileAddBy(Diag)Dir when possible. 7 years ago
Patric Stout 17bd580630
Remove: NO_DEBUG_MESSAGES was only read and setting it broke compilation (#6703)
Given any speed issue cannot be attributed to checking for _debug_NNN_level, removing this is a safe action

This fixes #6652.
7 years ago
michi_cc 016a68815d (svn r27912) -Fix (r13948): [NPF] Reserved track bits were not accounted for when trying to find any safe position. 7 years ago
adf88 1dd6930507 (svn r27906) -Cleanup: Remove some NPF code with no effect and mark possible bug about never used NPF_FLAG_IGNORE_RESERVED flag 7 years ago
frosch 062c736437 (svn r27896) -Fix: some warnings 7 years ago
frosch b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 7 years ago
frosch 35d8c37102 (svn r27885) -Cleanup (r27844): ESR_MAX_COST_EXCEEDED and ESR_PATH_TOO_LONG meant the same thing, but only one was used. Keep PATH_TOO_LONG since it has the better documentation. 7 years ago
peter1138 bf4499c643 (svn r27846) -Fix [FS#5926]: Infinite loop in pathfinder when checking safe waiting position from a waypoint. 8 years ago
peter1138 1eef97674c (svn r27845) -Change: (Yapf) Use FindDepotData struct to simplify depot finding code and remove need to return fake path distance. (juanjo) 8 years ago
peter1138 9bc27c9a72 (svn r27844) -Change: (Yapf) Treat max cost exceeded separately from path too long condition, as destination should not be considered in the former case. 8 years ago
peter1138 39fa3c7cbd (svn r27843) -Change: (Yapf) Consider depot as destination before reversing path and applying penalty. 8 years ago
frosch a23f707f92 (svn r27733) -Codechange: Pass NPF user data as void* instead of as array of integers. 8 years ago
frosch d90686f021 (svn r27586) -Fix [FS#6410]: Automatic servicing of road vehicles compared path finder costs with tile distances, thus vehicles went to depots which were factor 100 too far away. (juanjo) 8 years ago
frosch 22e6a2590d (svn r27418) -Fix [FS#6329] [FS#6379]: Desync due to incorrect storage of segments with different railtype in the YAPF cache. (JGR) 9 years ago
alberth 1105b4d2c9 (svn r27363) -Codechange: Fix codestyle of one-line methods and header codestyle of derived structs. 9 years ago
alberth b885d79f50 (svn r27362) -Codechange: Codestyle fixes for reference var declarations, static cast type, operator methods. 9 years ago
frosch 59a94f8ccf (svn r27332) -Change: Enable YAPF cache debugging with desync debug level 2. 9 years ago
rubidium 193f653c56 (svn r27107) -Fix [FS#6183]: road vehicles could not reverse to be sent to depots when the following tile has the right type to run on, but could not be entered; e.g. facing toward a depot with the entry facing the wrong way failed to reverse whereas facing towards an empty tile allowed the vehicle to reverse (estys) 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 11 years ago
rubidium f669101560 (svn r26117) -Cleanup: unneeded NULL check 11 years ago