Commit Graph

55938 Commits (d4ed08849855b99b39fd95a83faad3c7cec4f2e0)
 

Author SHA1 Message Date
Jonathan G Rennison d6041149a4 TBTR: Fix layout of middle panel in RTL languages 10 months ago
Jonathan G Rennison c6dcb28372 TBTR: Fix layout of bottom panel in RTL languages 10 months ago
Jonathan G Rennison 03c3050c43 Fix too small string buffer in FormatUnitWeightRatio 10 months ago
Jonathan G Rennison 0f8d8ca485 TBTR: Fix layout of top panel in RTL languages 10 months ago
Jonathan G Rennison 3b8d8aeb6a TBTR: Adjust config buttons/text in main window
Clarify refit and depot options
Adjust layout
10 months ago
Jonathan G Rennison 8dc635b516 Order window: Fix misalignment of shared order vehicles button 10 months ago
Jonathan G Rennison 668a0f774a Window: Add accessors for cached NWidgetLeaf dimensions 10 months ago
Jonathan G Rennison 81a0ed0763 TBTR: Change template mode buttons to on/off instead of push 10 months ago
Jonathan G Rennison a0e3885acc Add airport tile variables to get airport type local ID and layout 10 months ago
Jonathan G Rennison e72744cc77 Debug: Show airport type/layout in debug window 10 months ago
Jonathan G Rennison c804442005 Release: Remove ubuntu 18.04, debian buster. Add debian bookworm 10 months ago
Jonathan G Rennison 5f8bfb176c Support articulated engines with multiple cargoes in engine news messages 10 months ago
Jonathan G Rennison 547c00b465 Settings: Only write out config on setting change for persistent changes 10 months ago
Jonathan G Rennison f8c8ba2670 Settings: Split HandleSettingDescs into per-ini functions 10 months ago
Jonathan G Rennison c8501938b0 Fix 19835b51: Wrong GoodsEntryData used after vehicle refit in station 10 months ago
Jonathan G Rennison 84b7f2eb20 Fix 19835b51: GoodsEntryData was not zero-inited 10 months ago
Jonathan G Rennison 1eb1b0ffcb Debug: Show cargo packet info if cargo is reserved 10 months ago
Jonathan G Rennison 056616ae1a Fix text truncation in PNG screenshot metadata 10 months ago
Jonathan G Rennison b323e1a8ae Remove pessimising std::move 10 months ago
Jonathan G Rennison d132dc67d7 Fix compilation issues on clang
Due to template template argument parameter count mismatch
See: 23ad010d
10 months ago
Jonathan G Rennison 22f9a6d7b0 Fix 19835b51: Linker issues with static empty structs 10 months ago
Jonathan G Rennison 14dc6586bc Sprite cache: Avoid resizing to fully zoomed if not needed 10 months ago
Jonathan G Rennison 0cac2526f1 Fix 2f692a79: Dest ptr not advanced for BM_BLACK_REMAP in 32bpp anim blitter 10 months ago
Jonathan G Rennison 3a8217fc99 Sprite cache: Move LRU to struct Sprite
Prune from sprite cache by individual sprite structs instead of IDs
10 months ago
Jonathan G Rennison 8077274ed1 Sprite cache: Clamp recolour sprite allocation to max size 10 months ago
Jonathan G Rennison 627fd3d4fa Add console command to dump sprite cache stats 10 months ago
Jonathan G Rennison 7e5a87dd46 Blitter: Null blitter always requires no zoom levels 10 months ago
Jonathan G Rennison c4e8b919f8 Blitter: Change some informational virtual functions to member values 10 months ago
Jonathan G Rennison 46f5fb9f25 Sprite cache: Allow caching only required subset of sprite zoom levels
Enable for blitters based on 32bpp_optimized or SSE
10 months ago
Jonathan G Rennison 785216db73 Sprite: Don't allocate sprite encode space for map-mode zoom levels 10 months ago
Jonathan G Rennison d6f01988e3 Sprite cache: List total candidates in cache eviction debug message 10 months ago
Jonathan G Rennison d5e0d8f81e Blitter: Reduce mallocs, memsets in Blitter_32bppOptimized::Encode 10 months ago
Jonathan G Rennison 83d3fab599 TBTR: Autorefit button in depot window now also does template replacements 10 months ago
Jonathan G Rennison b0331c84b3 TBTR: Refactor handling of vehicle start/stop state 10 months ago
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
10 months ago
Jonathan G Rennison 64df35067a TBTR: Handle setting unit direction separately from refits 10 months ago
Jonathan G Rennison 2cf95eea36 TBTR: Refactor train/template match function to return difference flags 10 months ago
Jonathan G Rennison 2b44d3302e CommandCost: Change AllocSummaryMessage to std::string SummaryMessage 10 months ago
Jonathan G Rennison b0538a00e0 Add setting for whether to allow converting town road to non-house types
See: 51e22617
10 months ago
Jonathan G Rennison ff61b6d243 Fix crash in NewGRF parameters window (manual parameter mode)
See: https://github.com/OpenTTD/OpenTTD/issues/11215
10 months ago
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).
10 months ago
Jonathan G Rennison cd2ab6430b Use btree map for GRFParameterInfo value names 10 months ago
Jonathan G Rennison 615c42d357 Reserve vector size when loading station flow stats 10 months ago
Jonathan G Rennison 0f9f1f4280 Use btree map for _town_test_ratings 10 months ago
Jonathan G Rennison 2bc943d31a Avoid std::set in script version checks 10 months ago
Jonathan G Rennison 1979fa9db1 Use btree set for _changed_storage_arrays 10 months ago
Jonathan G Rennison 53ef4536d9 Departures: Use btree map for scheduled dispatch maps 10 months ago
Jonathan G Rennison 66b5c615b7 Use btree map for GRF ID overrides 10 months ago
Jonathan G Rennison e912cfc19d Ring buffer: Use as backing for std::queue uses 10 months ago
Jonathan G Rennison 2296b92ea2 Use btree map for StationCargoAmountMap 10 months ago