Charles Pigott
e8a94dc8bb
Cleanup: Delete remaining Blob code
2021-04-04 08:01:54 +01:00
Charles Pigott
e8022a589d
Codechange: Replace CBlobT usage with std::vector
2021-04-04 08:01:54 +01:00
Charles Pigott
f481c9fc2c
Codechange: Replace CStrA with std::string
2021-04-04 08:01:54 +01:00
Charles Pigott
591ea9862d
Codechange: Suppress warnings when asserts are disabled ( #8916 )
2021-04-01 10:03:12 +02:00
Patric Stout
d4583fa64c
Fix #8123 : trams on half-tiles couldn't find depots ( #8738 )
...
Basically, follow_track.hpp contains a fix for half-tiles, but
this wasn't duplicated for when trying to find a depot and in
a few other places. This makes sure all places act the same.
2021-02-25 22:46:46 +01:00
Charles Pigott
80fb1c74f0
Change: Make pathfinder account for maximum order speed, if set
2021-02-22 00:25:47 +00:00
Charles Pigott
1d6a0c7b52
Fix: [YAPF] Road pathfinder did not account for length of tunnel/bridge in path cost
...
Copy calculations from the rail pathfinder
2021-02-21 10:53:25 +00:00
Charles Pigott
c461999b2b
Fix #8594 : [NRT] Road pathfinder did not account for roadtype speed limits
2021-02-21 10:53:25 +00:00
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
2021-01-08 11:16:18 +01:00
Patric Stout
56d54cf60e
Add: introduce CMake for project management
...
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
2020-06-05 19:36:05 +02:00
Quipyowert2
acb3d10832
Codechange: Format unsigned integers with %u instead of %i or %d.
2020-02-13 21:36:37 +01:00
Jonathan G Rennison
1a88fb5c91
Fix #7592 : Do not cache road vehicle path within 8 tiles of destination with multiple entrances
...
Ported from jgrpp commit 79d5be7e265df3be8b73d484f0c7261b3c23229d
2020-02-07 23:02:10 +01:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
Charles Pigott
71a3e83468
Fix: GCC9's warnings about deprecated implicit assignment operators
2019-09-30 14:00:06 +01:00
JMcKiern
04f659e768
Fix: Some typos found using codespell
2019-09-29 21:27:32 +01:00
peter1138
0db31ae27f
Change: Avoid caching end of ship path, to allow penalties to apply.
2019-06-30 16:46:32 +02:00
peter1138
31db4f8d5e
Add: Penalty for occupied docking points.
2019-06-30 16:46:32 +02:00
peter1138
f538179878
Feature: Multi-tile docks and docking points.
2019-06-30 16:46:32 +02:00
peter1138
c02ef3e456
Feature: Add NotRoadTypes (NRT)
2019-05-01 21:36:27 +02:00
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.
2019-05-01 21:36:27 +02:00
Charles Pigott
9f3928658b
Codechange: Remove Track{dir,}{Bits,}Byte types
2019-04-29 17:40:22 +01:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Charles Pigott
fe448a2616
Remove: OPF
2019-03-16 22:30:11 +00:00
Michael Lutz
cc5f175615
Feature: Railtype flags to allow/disallow 90 degree curves. ( #7352 )
2019-03-10 08:12:47 +00:00
PeterN
6c6971fb43
Add: Road vehicle path cache. ( #7261 )
2019-03-08 23:52:45 +00:00
Peter Nelson
7ca1793ec4
Change: Automatically use Trackdir node key as needed if ship curve penalties differ.
2019-03-08 16:52:08 +01:00
Peter Nelson
b8a0107ad1
Change: Add configurable curve penalty for ships.
2019-03-08 16:52:08 +01:00
Peter Nelson
3f327116db
Change: Don't apply forbid 90 deg turn settings to ships.
2019-03-03 20:59:44 +01:00
J0an Josep
029c48cf4a
Cleanup: [NPF] Remove unused parameter.
2019-01-31 22:15:56 +00:00
J0an Josep
d814dd3434
Cleanup: [NPF] Assert that a track has been chosen.
2019-01-31 22:15:56 +00:00
J0an Josep
aa63517c92
Fix #7060 : [NPF] Do not check whether ignored first tiles are end nodes.
2019-01-31 22:15:56 +00:00
J0an Josep
19be1f4ace
Codechange: [NPF] Add some consts.
2019-01-31 22:15:56 +00:00
J0an Josep
96c5e5e73a
Cleanup: [NPF] Remove unused parameters.
2019-01-31 22:15:56 +00:00
J0an Josep
a5836874ef
Codechange: Use track functions.
2019-01-26 22:55:12 +00:00
Peter Nelson
81330b8d6e
Change: Add path cache for ships.
2019-01-19 23:11:17 +00:00
J0an Josep
effb7da5b4
Doc: Fix spelling in comments.
2019-01-06 16:47:45 +01:00
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.
2019-01-06 16:47:45 +01:00
Juanjo!
1db66a285e
Codechange: [YAPF] Stop looking for an automatic servicing road depot when the cost of a path exceeds max. penalty.
2019-01-06 16:47:45 +01:00
Juanjo!
edb7adf183
Codechange: [NPF] Stop looking for an automatic servicing (rail/road) depot when the cost of a path exceeds max. penalty.
2019-01-06 16:47:45 +01:00
J0an Josep
19a2f84943
Fix #7001 : Pathfinders should see standard road stations as tiles where to reverse.
2019-01-06 16:47:45 +01:00
J0an Josep
16a91130a7
Codechange: Use INVALID_TRACKDIR instead of 0xFF.
2019-01-04 23:55:07 +01:00
Charles Pigott
bb7353c02a
Codechange: Some more null checks
2018-10-31 12:41:49 +01:00
Charles Pigott
b5028efc1f
Fix: Protect against a few out of bounds or uninitialised usage errors
2018-10-31 12:41:49 +01:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
J0anJosep
d01c09fb73
Codechange: Use HasTrack(dir) to improve code readability.
2018-06-27 23:14:30 +02:00
J0anJosep
31ac11bddb
Codechange: Increase readability of track functions and pathfinders.
2018-06-27 23:14:30 +02:00
Juanjo
85ebe20a76
Cleanup: Unnecessary assignation on FollowTileExit(): done previously on the function.
2018-06-27 23:14:30 +02:00
Juanjo
6a9df285d0
Codechange: Separate an assertion. More information if assert is triggered.
2018-06-27 23:14:30 +02:00
J0anJosep
79a551a83c
Codechange: Use TileAddBy(Diag)Dir when possible.
2018-04-30 18:55:04 +02:00
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 .
2018-04-11 22:07:21 +02:00