Commit Graph

54615 Commits

Author SHA1 Message Date
Jonathan G Rennison
3e4ae68075 Version: Committing version data for tag: jgrpp-0.51.1 2023-02-28 02:01:24 +00:00
Jonathan G Rennison
b7a82e0f29 AyStar: Reduce redundant GetElement calls in BinaryHeap 2023-02-28 01:46:21 +00:00
Jonathan G Rennison
88d7a8ea13 Formatting: Fix indentation of public/private specifiers 2023-02-28 01:44:28 +00:00
Jonathan G Rennison
0a8c58b755 Public roads: Fix memory leaks 2023-02-28 01:41:08 +00:00
Jonathan G Rennison
777dcd047d CMake: Add missing references in src/3rdparty 2023-02-27 22:38:27 +00:00
Jonathan G Rennison
b1d55519d3 strgen: Fix memory leak 2023-02-27 22:34:08 +00:00
Jonathan G Rennison
50be7b224a Road waypoints: Clip previews in build windows to drawing area 2023-02-27 22:09:38 +00:00
Eric Long
20a1b24b45 Fix: build on platforms without native atomic 2023-02-27 17:11:29 +01:00
Chenshu Yu
eabb9db0bb
Fix #9810: 'Rebuilding' a through road stop costs money (#9852) 2023-02-27 08:59:42 +00:00
Patric Stout
6fcc8727f5 Change: [Actions] cancel previous run if pushing new PR
Lately we had a few times that people pushed to their PR branch
a few times to make small changes. Sadly, this triggers all CIs
every time, which takes ~20 minutes. As we are limited in the
amount of runners we get assigned to us, this means all other CI,
even for other repositories within OpenTTD, are delayed too.

We can avoid this by simply cancelling old runs when a new PR is
pushed. There is a downside: sometimes people already push a new
commit, but still want to know if the old one passed. That will
no longer be possible with this change.
2023-02-26 23:33:15 +01:00
dP
b0542c8c49
Codechange: Don't store tree counter in the map array (#10018) 2023-02-26 16:39:44 -05:00
SamuXarick
6eabbaa751 Fix #10469, 5e14a20: [Script] League Table rating element is a int64 everywhere else 2023-02-26 22:25:13 +01:00
Michael Lutz
aab580e0ac Codechange: [Linkgraph] Drop node/edge wrappers from LinkGraph. 2023-02-26 21:41:24 +01:00
Michael Lutz
4d3da0cf14 Codechange: [Linkgraph] Drop node/edge wrappers from LinkGraphJob. 2023-02-26 21:41:24 +01:00
Michael Lutz
7352f812e6 Codechange: [Linkgraph] Only store present link graph edges and not all possible edges. 2023-02-26 21:41:24 +01:00
Michael Lutz
178249e7cc Codechange: Saveload macros for entries with a custom table name. 2023-02-26 21:41:24 +01:00
Michael Lutz
8f851ead70 Codechange: [Linkgraph] Split annotation for demand between nodes from the edge annotations. 2023-02-26 21:41:24 +01:00
Michael Lutz
564de01d66 Remove: SmallMatrix be gone. 2023-02-26 21:41:24 +01:00
Michael Lutz
fe27db3dfd Codechange: [Linkgraph] Store edges in each node and not in a global matrix. 2023-02-26 21:41:24 +01:00
Niels Martin Hansen
2fee8ecdda Add #7525: Allow autoreplace with same model vehicle 2023-02-26 21:29:25 +01:00
Jonathan G Rennison
4c1406a4b5 Add: NewGRF road stops 2023-02-26 21:28:30 +01:00
Tyler Trahan
a18182e24b
Revert 92c7551: Line drawing algorithm fix broke other cases (#10497)
This reverts commit 92c755161d.
2023-02-26 19:23:31 +00:00
translators
07fbd19da3 Update: Translations from eints
luxembourgish: 8 changes by phreeze83
2023-02-26 18:45:57 +00:00
Jonathan G Rennison
db224585eb Revert "Public roads: Dynamically set A* max search nodes"
This reverts commit acd67a0d0b.
2023-02-26 15:45:41 +00:00
Jonathan G Rennison
8e5371eec4 Public roads: Fix handling of non-trivial foundations 2023-02-26 14:45:40 +00:00
Jonathan G Rennison
d64b52cdaf AyStar: Change types used for hashes and queue
Use robin_hood for the hashes
Store nodes in PodPools
Change BinaryHeap to store node IDs
2023-02-26 13:31:39 +00:00
Jonathan G Rennison
dd1bd270e7 AyStar: Use dbg_assert in BinaryHeap Push, GetElement 2023-02-26 13:31:39 +00:00
Jonathan G Rennison
ad90f90d43 Public roads: Adjust return type of town_network_distance 2023-02-26 13:31:39 +00:00
Jonathan G Rennison
acd67a0d0b Public roads: Dynamically set A* max search nodes 2023-02-26 13:31:39 +00:00
Jonathan G Rennison
ff189e44e4 Public roads: Handle non-trivial existing foundations 2023-02-26 13:31:39 +00:00
Jonathan G Rennison
2d1b3fb6e7 Public roads: Remove visited towns mechanism
It is excessively expensive, and not needed
2023-02-26 13:31:39 +00:00
Jonathan G Rennison
5641c926bf Public roads: Use robin_hood hash maps for checked towns and town to network 2023-02-26 13:31:39 +00:00
Jonathan G Rennison
72237f01cc Add robin_hood hash set/map containers to 3rdparty 2023-02-26 13:31:39 +00:00
Jonathan G Rennison
83b9344f5c Add a POD pool-type container class 2023-02-26 13:31:39 +00:00
Rubidium
947a789bf6 Codechange: split large function into smaller steps and simplify logic 2023-02-25 23:57:36 +01:00
Rubidium
8cbf1be9d6 Codechange: split large function into smaller functions with self-explanatory names 2023-02-25 23:57:36 +01:00
Rubidium
a409e4b026 Add: documention to large functions that have too little documentation according to CodeQL 2023-02-25 23:57:36 +01:00
Jonathan G Rennison
b56d7267dc Public roads: Remove unnecessary sorting operations 2023-02-25 22:14:22 +00:00
Jonathan G Rennison
3967a9fdb0 Public roads: Reuse AyStar finder instance 2023-02-25 22:14:22 +00:00
Jonathan G Rennison
06ffc0ba70 Public roads: Avoid dangling pointer issues in AyStar user target 2023-02-25 22:14:22 +00:00
Jonathan G Rennison
f8130f5cb7 Public roads: Remove use of shared_ptr 2023-02-25 22:14:22 +00:00
Jonathan G Rennison
84914129a5 Fix wrong string order for about menu dropdown texts 2023-02-25 22:14:22 +00:00
translators
2561fad5d4 Update: Translations from eints
romanian: 1 change by bnegrut
2023-02-25 18:45:15 +00:00
Jonathan G Rennison
3d7f9ea50e TBTR: Fix template build window not being refreshed after wagon flip in MP 2023-02-25 17:14:19 +00:00
Jonathan G Rennison
e0a42b5945 Debug: Add dumping of rail and road/tram sprite groups 2023-02-25 16:16:49 +00:00
dP
c73b88ddca
Fix: Don't send unused tile field over the network (#10507) 2023-02-24 22:50:11 +01:00
Michael Lutz
9b3326e3fd Codechange: [Script] Use std::vector instead of a hand-rolled alternative. 2023-02-24 21:46:27 +01:00
Michael Lutz
ca3cb4d2ef Codechange: [Script] Use a class template instead of a function template for squirrel type conversion.
Class templates allow using partial template specialization, which is useful in
case one wants to have a type conversion on a type that is itself templated.
2023-02-24 21:46:27 +01:00
translators
187d330177 Update: Translations from eints
spanish (mexican): 1 change by GNosii
2023-02-24 18:48:34 +00:00
Jonathan G Rennison
86aeb16f55 Fix wrong string ordering for town growth setting 2023-02-24 16:42:38 +00:00