Jonathan G Rennison
7e5a87dd46
Blitter: Null blitter always requires no zoom levels
2023-08-22 23:10:52 +01:00
Jonathan G Rennison
c4e8b919f8
Blitter: Change some informational virtual functions to member values
2023-08-22 23:02:25 +01:00
Jonathan G Rennison
46f5fb9f25
Sprite cache: Allow caching only required subset of sprite zoom levels
...
Enable for blitters based on 32bpp_optimized or SSE
2023-08-22 22:16:04 +01:00
translators
4d4a046d23
Update: Translations from eints
...
polish: 2 changes by pAter-exe
2023-08-22 18:39:08 +00:00
Jonathan G Rennison
785216db73
Sprite: Don't allocate sprite encode space for map-mode zoom levels
2023-08-21 23:19:26 +01:00
Jonathan G Rennison
d6f01988e3
Sprite cache: List total candidates in cache eviction debug message
2023-08-21 21:56:07 +01:00
Jonathan G Rennison
d5e0d8f81e
Blitter: Reduce mallocs, memsets in Blitter_32bppOptimized::Encode
2023-08-21 22:10:28 +01:00
Jonathan G Rennison
2cbd76593a
Fix #11215 : Assert in NewGRF parameters window (manual parameter mode) ( #11217 )
2023-08-21 12:42:33 +02:00
Jonathan G Rennison
83d3fab599
TBTR: Autorefit button in depot window now also does template replacements
2023-08-20 23:37:46 +01:00
Jonathan G Rennison
b0331c84b3
TBTR: Refactor handling of vehicle start/stop state
2023-08-20 23:36:39 +01:00
Rubidium
6635f809dd
Fix #11181 : attempting to read string as int triggers assertion
2023-08-20 23:57:42 +02:00
Jonathan G Rennison
d7d9c05cbd
TBTR: Fix various refit issues in refit as incoming vehicle mode
...
Allow refits to fail in refit as incoming vehicle mode
Remove virtual train mode from CmdRefitVehicle
Fix refit as incoming for non-head parts being free
2023-08-20 22:30:33 +01:00
Jonathan G Rennison
64df35067a
TBTR: Handle setting unit direction separately from refits
2023-08-20 22:30:33 +01:00
Jonathan G Rennison
2cf95eea36
TBTR: Refactor train/template match function to return difference flags
2023-08-20 22:30:33 +01:00
Jonathan G Rennison
2b44d3302e
CommandCost: Change AllocSummaryMessage to std::string SummaryMessage
2023-08-20 22:30:33 +01:00
Jonathan G Rennison
8df4aa7979
Fix: Road stops should not draw a ground sprite of 0 ( #11214 )
2023-08-20 15:46:19 -04:00
Patric Stout
45cc3acaf5
Codechange: [Win32] unify AppendDecodedStacktrace and LogStacktrace ( #11220 )
...
AppendDecodedStacktrace was already doing the same as LogStacktrace,
just with a different name.
2023-08-20 18:57:01 +00:00
translators
bc2dfc4691
Update: Translations from eints
...
turkish: 2 changes by BeratSJ
2023-08-20 18:39:09 +00:00
Patric Stout
352ac264a5
Remove: [Win32] module-list from crash.log ( #11219 )
...
Only Windows implemented this, and it opens the files to read them
to get a CRC. Doing this in a crash-handler is strange at best.
Lastly, nobody has actually ever used this information to come to
some sort of conclusion. The module-list is used in combination
with the crash.dmp, but this information is already embedded in
there.
2023-08-20 17:09:21 +00:00
Jonathan G Rennison
b0538a00e0
Add setting for whether to allow converting town road to non-house types
...
See: 51e22617
2023-08-20 17:53:08 +01:00
Patric Stout
f120d2beb8
Add: use breakpad to create crash.dmp on MacOS / Linux too ( #11202 )
...
Normally only the Windows platform could create a crash.dmp, making
analysing crash-reports from MacOS / Linux rather tricky.
2023-08-20 17:16:08 +02:00
Patric Stout
8f6df242c4
Remove: [Win32] (pointer-only) stack trace in crash.log ( #11211 )
...
It only contains pointers, which nobody can decipher anyway.
So instead, just report "Not supported", like other targets do
when they can't print a sane stack trace.
2023-08-20 17:08:16 +02:00
Patric Stout
a5aebeb1b5
Remove: [Win32] register values in crash.log ( #11212 )
2023-08-20 16:59:22 +02:00
Loïc Guilloux
8c9ecde964
Change: Remove autosave from settings window ( #11218 )
...
It is broken since 4f4810d
and it's also in game options.
2023-08-20 14:33:02 +00:00
Jonathan G Rennison
ff61b6d243
Fix crash in NewGRF parameters window (manual parameter mode)
...
See: https://github.com/OpenTTD/OpenTTD/issues/11215
2023-08-20 11:27:42 +01:00
Jonathan G Rennison
19835b51ee
Move StationCargoList and FlowStatMap out of GoodsEntry struct
...
Move them into a new GoodsEntryData struct referenced
using a std::unique_ptr from GoodsEntry.
The unique_ptr may be nullptr if the cargo list and flow stat map
are both empty (this is the case for unused cargoes).
This reduces GoodsEntry from 128 to 24 bytes,
and Station from 8680 to 2024 bytes,
(on Linux x86_64).
2023-08-19 21:24:29 +01:00
translators
93f4f1e83a
Update: Translations from eints
...
german: 40 changes by Wuzzy2
2023-08-19 18:38:46 +00:00
Jonathan G Rennison
cd2ab6430b
Use btree map for GRFParameterInfo value names
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
615c42d357
Reserve vector size when loading station flow stats
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
0f9f1f4280
Use btree map for _town_test_ratings
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
2bc943d31a
Avoid std::set in script version checks
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
1979fa9db1
Use btree set for _changed_storage_arrays
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
53ef4536d9
Departures: Use btree map for scheduled dispatch maps
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
66b5c615b7
Use btree map for GRF ID overrides
2023-08-19 18:15:34 +01:00
Jonathan G Rennison
e912cfc19d
Ring buffer: Use as backing for std::queue uses
2023-08-19 15:28:45 +01:00
Jonathan G Rennison
2296b92ea2
Use btree map for StationCargoAmountMap
2023-08-19 14:24:06 +01:00
Jonathan G Rennison
23ad010d70
Replace remaining uses of std::deque with ring buffers
...
Cargo packet lists and associated save/load
2023-08-19 14:01:06 +01:00
Jonathan G Rennison
b59a8dc21c
Ring buffer: Don't apply const when dereferencing iterators
2023-08-19 13:54:52 +01:00
Jonathan G Rennison
0c634edef5
Ring buffer: Add erase
2023-08-19 13:47:14 +01:00
Jonathan G Rennison
877e301c5a
Ring buffer: Add multi-value insert
2023-08-19 13:04:48 +01:00
Jonathan G Rennison
bdfdb9808a
Ring buffer: Add iterator conversions
2023-08-19 12:25:15 +01:00
Jonathan G Rennison
8d2911fe29
Ring buffer: Add swap function, make move (swap) assignment noexcept
2023-08-19 12:16:33 +01:00
Jonathan G Rennison
ab128143fb
Ring buffer: Make iterator default constructor public
2023-08-19 12:09:09 +01:00
Jonathan G Rennison
8d3a90425c
Test: Add tests for ring buffer functionality
2023-08-19 11:44:58 +01:00
Jonathan G Rennison
3f2b06fcbe
Ring buffer: Fix various insert/emplace cases
2023-08-19 11:41:29 +01:00
Jonathan G Rennison
6b8994c947
Ring buffer: Fix iterator operator + and -
2023-08-19 11:41:11 +01:00
Jonathan G Rennison
21adf399c0
Ring buffer: Add a std::initializer_list constructor
2023-08-19 11:32:49 +01:00
Rubidium
73d7052732
Add: unit test functionality using catch2
...
(cherry picked from commit 43a7e54067
)
2023-08-19 10:18:31 +01:00
Rubidium
f92a96dad2
Add: catch2 v2.13.10
...
(cherry picked from commit 88ead3f102
)
2023-08-19 10:18:31 +01:00
Jonathan G Rennison
5a28405ced
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/company_gui.cpp
# src/group_gui.cpp
# src/newgrf.cpp
# src/newgrf_debug_gui.cpp
# src/saveload/saveload.cpp
2023-08-19 01:28:36 +01:00