Jonathan G Rennison
efc4cd4eff
Add missing data() method to span
1 year ago
Jonathan G Rennison
c46afa04f7
Use pos TileVirtXY for aircraft crash tile
...
See: #549
1 year ago
Jonathan G Rennison
d6787c4731
Fix f9f1cb21: Setting saveload type
...
See: #548
1 year ago
Jonathan G Rennison
76a9e280c2
Network: De-duplicate getting random bytes with fallback
1 year ago
Jonathan G Rennison
b18d3c9603
Network: Auto-kick clients after too many failed rcon/settings attempts
1 year ago
Jonathan G Rennison
120f0e8a81
Add a helper for sub-packet deserialisation
1 year ago
Jonathan G Rennison
f9f1cb2190
Fix crash when changing AI interval setting
...
See: #548
1 year ago
Jonathan G Rennison
c4c14cb6a7
3rdparty: Update monocypher from 3.1.3 to 4.0.1
...
Update to match interface changes
1 year ago
Jonathan G Rennison
11a3dc287b
Serialisation: Adjust method names/types
1 year ago
Jonathan G Rennison
4b807e091a
Don't allow changing SF_NO_NETWORK_SYNC settings via DoCommand
1 year ago
Jonathan G Rennison
53ff710364
Fix road build toolbar in scenario editor
1 year ago
Jonathan G Rennison
7202a4e0a6
Fix crash when using picker tool on non-GRF objects
...
See: #546
1 year ago
Jonathan G Rennison
c285413853
Network: Change hash function for non-company passwords
...
Increase size of per-connection salts, simplify management
Cache per-connection hashes at server end
Send hashes as binary rather than bothering to stringify them
1 year ago
Jonathan G Rennison
79255c0294
Serialisation: Add helpers to send/recv length-prefixed binary buffers
1 year ago
Jonathan G Rennison
8c507d6611
Crash log: Suppress messages from internal faults
1 year ago
Jonathan G Rennison
ad995cbebc
Windows crash log: Use TerminateProcess instead of ExitProcess
1 year ago
Jonathan G Rennison
940656bb6c
Windows crash log: Handle crash log faults (MinGW)
1 year ago
Jonathan G Rennison
b26a3fa41e
Crash log: Write out crash log incrementally on Windows, MacOS
1 year ago
Jonathan G Rennison
76304c1f76
Crash log: Checkpoint each line of decoded stack trace
1 year ago
Jonathan G Rennison
da07c8ce51
Crash log: Move GDB/LLDB logging to its own section
1 year ago
Jonathan G Rennison
dd57fc6ecf
Unix crash log: Generalise crash log fault handling to all sections
1 year ago
Jonathan G Rennison
7a9cf87ff8
Windows: Add fallback for DoOSAbort implementation
1 year ago
Jonathan G Rennison
aa8b60da15
Crashlog: Fix crash log when font caches not initialised
1 year ago
Jonathan G Rennison
417abcccff
Windows: Handle abort exception in VectoredExceptionHandler
...
To make sure that it is definitely handled
1 year ago
Jonathan G Rennison
cca7c0ef0a
Windows: Don't call abort, use RaiseException directly
1 year ago
Jonathan G Rennison
cb6f6f94e6
Fix string handling error in OTTDStringCompare Windows implementation
...
See: #542
1 year ago
Jonathan G Rennison
b7ffa1e0fb
Unconditionally use custom handler for asserts
1 year ago
Jonathan G Rennison
ec4d9e8459
Merge PR #532 into jgrpp
1 year ago
TELK
afccf11bfa
Update: Korean translation up to dd69339
1 year ago
TELK
7a203a52ea
Update: Korean translation for 2a5a9c2
1 year ago
TELK
7e3e95d1aa
Update: Korean translation for 61e9c30
1 year ago
TELK
07c4ed3f18
Update: Korean translation up to 5615cee
1 year ago
Jonathan G Rennison
7084b97a5d
Add NewGRF extension feature for more stations per GRF
1 year ago
translators
dd69339bc7
Update upstream language files to 2097719f
1 year ago
PeterN
1696ef6446
Fix: Don't restore backed up vehicle name if it's no longer unique. ( #10979 )
...
(cherry picked from commit 2097719f26
)
1 year ago
merni-ns
e1cb4d2397
Fix #10975 : Clear a non-head engine's name ( #10976 )
...
(cherry picked from commit 1be668c2e4
)
1 year ago
Patric Stout
2618179664
Fix: Wayland crash on startup due to Pango also using FontConfig ( #10916 )
...
Basically, we haven't been a good neighbour. Turns out you shouldn't
actually call FcFini when you are done, as some library might still
want to use FontConfig. And they use a shared instance for their
administration.
The idea is that you call FcInit once, and use FcConfigReference
after that to get an instance, you can release. This entry is
ref-counted, and things happen automatically based on that.
At least, I think.
(cherry picked from commit cd751a598a
)
1 year ago
PeterN
ed3759eef7
Fix: Land info window maximum width was not scaled. ( #10894 )
...
(cherry picked from commit 1ff0dc11d8
)
1 year ago
Patric Stout
19a6846cb6
Codechange: initialize all values of ICURun on construction ( #10892 )
...
(cherry picked from commit 0302e6f168
)
1 year ago
Loïc Guilloux
391b80d59a
Fix: Check max member count in squirrel classes ( #10883 )
...
Manual cherry-pick from 23a0620658
(cherry picked from commit c880157518
)
1 year ago
PeterN
8034609368
Fix: Ask FontConfig for the face index when opening fonts. ( #10878 )
...
This allows selection of the correct face in truetype fonts containing
multiple faces.
(cherry picked from commit 876871157f
)
1 year ago
PeterN
ac420f208c
Change: Cargo flow legend only shows defined cargo. ( #10872 )
...
This removes the large mostly-empty grid of cargo buttons when not using a complex industry set.
(cherry picked from commit 702194cfef
)
1 year ago
Jonathan G Rennison
08030e1b8a
Add hotkey for convert rail type by track piece
1 year ago
Jonathan G Rennison
ccdca8ae52
Add setting to increase size of main toolbar
1 year ago
Jonathan G Rennison
36e1c28173
Fix trains ascending a sloped bridge ramp having incorrect z in wormhole
...
z one larger than the correct value due to an extra increment on the
transition frame
1 year ago
Jonathan G Rennison
f8301f735f
Delivered cargo graph: Add missing overrides, remove unused variable
1 year ago
Jonathan G Rennison
ac2f9a21e8
Move upstream saveload to src/saveload/, move jgrpp saveload to src/sl/
...
Leave afterload in src/saveload/
1 year ago
Jonathan G Rennison
3c9ce6f9a5
Implement waypoint build window text filter for road waypoints
1 year ago
Jonathan G Rennison
02549c5224
Merge branch 'master' into jgrpp
...
# Conflicts:
# cmake/CompileFlags.cmake
# src/cargomonitor.cpp
# src/core/CMakeLists.txt
# src/economy.cpp
# src/landscape.cpp
# src/linkgraph/flowmapper.cpp
# src/linkgraph/linkgraph_gui.cpp
# src/linkgraph/linkgraphschedule.cpp
# src/misc_gui.cpp
# src/newgrf_generic.cpp
# src/newgrf_storage.cpp
# src/rail_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/station_sl.cpp
# src/script/script_gui.cpp
# src/station_cmd.cpp
# src/station_gui.cpp
# src/string_func.h
# src/terraform_cmd.cpp
1 year ago
Jonathan G Rennison
d3fbe88a9c
Add setting for departure boards duration when using minutes
...
Default to 24 hours
1 year ago
Jonathan G Rennison
f3116eedcf
Support 64 bit values in the give money and change bank balance commands
...
See: #535
1 year ago
Jonathan G Rennison
3151751eda
Allow using the money cheat with values greater than 32 bits
...
See: #536
1 year ago
Jonathan G Rennison
d03465db59
Set default values for DoCommandPEx optional parameters
1 year ago
Jonathan G Rennison
bc00753996
NewGRF stations: Remove extended version of varuiable 68
1 year ago
Jonathan G Rennison
1d8df99c83
Fix upstream savegame load for versions 311 and later
1 year ago
Jonathan G Rennison
57762ce9f6
Enable upstream load for build object limit settings
1 year ago
Jonathan G Rennison
fa0771979f
Add upstream savegame load support for versions 315
1 year ago
Jonathan G Rennison
929dd46fcf
Add upstream savegame load support for versions 313 and 314
1 year ago
Michael Lutz
e5654a0414
Codechange: Use a dedicated variable for disaster vehicle action state. ( #10798 )
...
(cherry picked from commit 72c7536325
)
1 year ago
Jonathan G Rennison
2c91866831
Adjust spacing of buttons in cargo payments rate graph
1 year ago
Jonathan G Rennison
2a5a9c2f9d
Add by cargo mode to company delivered cargo history graph
1 year ago
Jonathan G Rennison
f09dfc79bd
Add cargo type filters to company delivered cargo window
...
Adapted from Citymania
1 year ago
Jonathan G Rennison
43c1b42a2c
Revert "Revert "Codechange: Explicitly move a few variables to avoid a copy constructor (fixes warning from clang)""
...
This reverts commit a99418cb69
.
1 year ago
Jonathan G Rennison
bc07331056
Remove src/3rdparty/optional
1 year ago
PeterN
ab83725d73
Add: NewGRF string code "9A 21" to display force from textstack. ( #10782 )
...
(cherry picked from commit 61516627ad
)
1 year ago
PeterN
98788e865f
Fix #10502 : Refit engine before attaching free wagons. ( #10926 )
...
Caused by incorrect order of operations when buying a train engine with refit and attaching free wagons.
(cherry picked from commit ee2d0745e9
)
1 year ago
Jonathan G Rennison
5c2f9dffe6
Fix compilation error in newgrf_profile console command on some platforms
1 year ago
Peter Nelson
b505805bfe
Fix: Don't rely on static initialization to set up sprite font caches.
...
The order of static initialization is undefined, so this can cause initalization
before relevant caches are initializations.
(cherry picked from commit f454ec8d63
)
1 year ago
Rubidium
dd94b087c4
Fix: multiplication result converted to larger type
...
Technically unlikely to happen, though uint16 * uint16 get promoted to int and
then stored as uint64; similarly uint * uint16 remains uint and gets stored as
uint64. In both cases the value can get truncated before the change to uint64.
(cherry picked from commit 4a6fdc8293
)
1 year ago
Jonathan G Rennison
d481d382cb
Fix missing include in company_base.h
1 year ago
Jonathan G Rennison
7cce9f934d
Fix strncasecmp related compilation errors on MSVC
1 year ago
Jonathan G Rennison
ffb4548f1b
Fix std::optional related compilation errors on some platforms
1 year ago
Jonathan G Rennison
3d382fe531
Debug: Fix compilation error when using RANDOM_DEBUG
1 year ago
Jonathan G Rennison
b84d1bcee4
Cheats window: Fix inflation factor arrow buttons
...
See: #533 , #534
1 year ago
Jonathan G Rennison
61e9c3084f
Add picker tool to main toolbar help menu
...
See: #498
Supports:
* Rail types
* Road/tram types
* Objects
* Rail stations/waypoints
* Road stops/waypoints
Add unset hotkey
1 year ago
Jonathan G Rennison
665a4ca55b
Add Window method to change window class
...
Use in BuildRoadStationWindow
1 year ago
Jonathan G Rennison
6215e326fd
Add constants for toolbar help menu items
1 year ago
Jonathan G Rennison
0e94dca563
Fix GetLinkGraphJobDesc for null saveload conv settings
1 year ago
Jonathan G Rennison
ec9766e691
Fix ai_developer_tools not being read before scanning for scripts
...
See: #528
1 year ago
Jonathan G Rennison
f9c9f53882
Fix town 0 not being included in public roads network
...
See: #530
1 year ago
Jonathan G Rennison
dc32b0533c
Viewport: Fix fixed vehicle route overlays not being marked dirty on remove
1 year ago
Jonathan G Rennison
0a8a9abe28
Window: Cache which window classes are currently present
1 year ago
Jonathan G Rennison
9fa6fb7438
Pay company loan interest before accumulating quarterly statistics
...
See: #524
1 year ago
Jonathan G Rennison
3a47b421b0
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/company_cmd.cpp
# src/core/overflowsafe_type.hpp
# src/economy.cpp
# src/engine_base.h
# src/ground_vehicle.cpp
# src/group_gui.cpp
# src/industry_cmd.cpp
# src/industry_gui.cpp
# src/newgrf_commons.cpp
# src/newgrf_engine.cpp
# src/newgrf_industries.cpp
# src/newgrf_object.cpp
# src/newgrf_roadstop.cpp
# src/newgrf_station.cpp
# src/rail_gui.cpp
# src/road_cmd.h
# src/road_gui.cpp
# src/saveload/afterload.cpp
# src/script/api/script_log.cpp
# src/script/api/script_log.hpp
# src/settings_gui.cpp
# src/settingsgen/settingsgen.cpp
# src/station_cmd.cpp
# src/station_cmd.h
# src/station_gui.cpp
# src/strgen/strgen.cpp
# src/string_func.h
# src/string_type.h
# src/table/settings/network_private_settings.ini
# src/tests/math_func.cpp
# src/textfile_gui.cpp
# src/timetable_gui.cpp
# src/town_cmd.cpp
# src/vehicle.cpp
# src/waypoint_cmd.cpp
# src/waypoint_cmd.h
# src/widgets/dropdown.cpp
1 year ago
Jonathan G Rennison
36fadb5424
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/base_station_base.h
# src/newgrf.cpp
# src/newgrf_class.h
# src/newgrf_class_func.h
# src/newgrf_commons.cpp
# src/newgrf_commons.h
# src/newgrf_roadstop.cpp
# src/newgrf_roadstop.h
# src/newgrf_station.cpp
# src/saveload/newgrf_sl.cpp
# src/saveload/saveload.h
# src/saveload/station_sl.cpp
1 year ago
Jonathan G Rennison
fc80a93672
Fix object town variables when no town is present
1 year ago
Jonathan G Rennison
3d4133cadb
Debug: Fix debug window parent scope button with missing town
1 year ago
Jonathan G Rennison
5615cee503
Show town count in town directory window
1 year ago
Jonathan G Rennison
819b9fcdd9
Include 'perfect' mode in tree placer setting helptext
1 year ago
Rubidium
6eb51666bc
Codechange: use C++ file APIs for writing language files
1 year ago
PeterN
0b663f709d
Codechange: Sprite mapping for objects doesn't involve cargo types. ( #10905 )
...
Objects have a default sprite group and an optional purchase list sprite
group. There is no need to pretend that these are cargo IDs.
1 year ago
Jonathan G Rennison
cdb3a6288b
Codechange: Remove unused CapacitiesMap typedef from struct Vehicle
1 year ago
Jonathan G Rennison
58c0aac15f
Fix re-opening GRF/script settings windows not closing drop down windows
...
Causing assertion failure on drop down item selection
See: #527
1 year ago
Jonathan G Rennison
e3bd8966fc
Debug: Allow setting parameters for extended vars in debug window
...
Reafctor handling of set parameters
1 year ago
Jonathan G Rennison
a10c5a62c9
Factor out function to get value with broadest digits
1 year ago
Jonathan G Rennison
18a79a35d0
Fix truncation of GetDebugString output string
...
See: #525
1 year ago
Jonathan G Rennison
f7964cb3aa
Add function to get name of extended variable ID
...
Add table for internal variable IDs which aren't mappable externally
1 year ago
Jonathan G Rennison
bdb9a72aa4
NewGRF: Add/extend station variables for station info of nearby tiles
...
In preparation for support of more than 255 stations per GRF
1 year ago
Jonathan G Rennison
1dbbbed9e5
NewGRF: Only extend value of road stops variable 68 if feature tested for
1 year ago
Jonathan G Rennison
2450705aa0
Use btree map for tracerestrict GUI drop down list mapping
1 year ago
Jonathan G Rennison
ec6f9478ee
Improve efficiency of station docking tiles check in CheckCaches
1 year ago
Jonathan G Rennison
24ffc5233c
Remove CapacitiesMap typedef
1 year ago
Patric Stout
9eda419f9b
Fix 646a7e62: recalc_time was not scaled properly ( #10901 )
...
This caused "runtime" to underflow or, if you are lucky, hit an
assert in ScaleToMonthly when it hits zero. But mostly underflow.
1 year ago
Jonathan G Rennison
326d0c329c
Remove some unnecessary colour strings
1 year ago
Jonathan G Rennison
40a9f19c20
Implement text filtering in dual pane train build window
1 year ago
Jonathan G Rennison
2ed248a61d
Merge branch 'master' into jgrpp
...
# Conflicts:
# .github/workflows/ci-build.yml
# .github/workflows/release-linux.yml
# src/aircraft_cmd.cpp
# src/airport_gui.cpp
# src/articulated_vehicles.cpp
# src/build_vehicle_gui.cpp
# src/company_gui.cpp
# src/genworld_gui.cpp
# src/gfx_layout.cpp
# src/misc_gui.cpp
# src/newgrf.cpp
# src/newgrf_config.h
# src/newgrf_engine.cpp
# src/news_gui.cpp
# src/order_gui.cpp
# src/roadveh_cmd.cpp
# src/saveload/saveload.h
# src/saveload/vehicle_sl.cpp
# src/ship_cmd.cpp
# src/statusbar_gui.cpp
# src/table/settings/network_private_settings.ini
# src/table/settings/network_settings.ini
# src/toolbar_gui.cpp
# src/train_cmd.cpp
# src/vehicle_gui.cpp
1 year ago
translators
b5b004e518
Update: Translations from eints
...
ukrainian: 117 changes by alextov
1 year ago
Rubidium
f29606fd14
Codechange: use std::string to cache engine/group/vehicle names
1 year ago
Rubidium
d9f8a4c380
Codechange: use std::string GetString variant
1 year ago
Rubidium
324c43eeb2
Codechange: let FiosGetDiskFreeSpace only return disk space and split FiosGetCurrentPath off
1 year ago
Rubidium
f2e704b9a7
Codechange: use std::string for FiosIsRoot
1 year ago
Rubidium
13789d1703
Codechange: use std::string for FiosIsValidFile
1 year ago
PeterN
1ff0dc11d8
Fix: Land info window maximum width was not scaled. ( #10894 )
1 year ago
Jonathan G Rennison
6880cf24a0
Fix crash in template replacement failure news if autorenew succeeds
1 year ago
Jonathan G Rennison
13183d3f13
Add command result flag for whether SetResultData was called
...
Use for tracerestrict validation result fail offset
1 year ago
Patric Stout
0302e6f168
Codechange: initialize all values of ICURun on construction ( #10892 )
1 year ago
translators
c8b70e4877
Update: Translations from eints
...
ukrainian: 53 changes by alextov
portuguese (brazilian): 1 change by ericandradex
1 year ago
Jonathan G Rennison
5dcbd9271b
Hide min_years_for_shares setting when shares are disabled
1 year ago
Jonathan G Rennison
bac8f032da
Re-add company shares
1 year ago
Jonathan G Rennison
6297abdb3b
Remove str_fmt and str_vfmt
1 year ago
Jonathan G Rennison
94c422499f
Use last pointer in std::string returning GetString
1 year ago
Jonathan G Rennison
7aef72b946
Add static_assert for length of _command_proc_table
1 year ago
Jonathan G Rennison
02fe4af934
Merge branch 'master' into jgrpp
...
# Conflicts:
# .github/workflows/release-windows.yml
# src/company_base.h
# src/company_cmd.cpp
# src/company_gui.cpp
# src/console_cmds.cpp
# src/economy.cpp
# src/economy_cmd.h
# src/fios.h
# src/goal.cpp
# src/group_gui.cpp
# src/network/core/config.h
# src/network/network_admin.cpp
# src/newgrf_config.cpp
# src/os/windows/win32.cpp
# src/saveload/afterload.cpp
# src/saveload/company_sl.cpp
# src/saveload/saveload.cpp
# src/saveload/saveload_error.hpp
# src/settings_gui.cpp
# src/ship_cmd.cpp
# src/stdafx.h
# src/story.cpp
# src/story_base.h
# src/string.cpp
# src/table/settings/economy_settings.ini
# src/tests/CMakeLists.txt
# src/tests/math_func.cpp
1 year ago
Jonathan G Rennison
3ec66e5fb5
Fix not being able to reload GS in script debug window
...
See: #523
1 year ago
translators
e1203c3a48
Update: Translations from eints
...
esperanto: 51 changes by legoscia
1 year ago
PeterN
d086f288cd
Codechange: Remove duplicated includes. ( #10888 )
...
These are now included by stdafx.h so don't need to be included again.
1 year ago
PeterN
702194cfef
Change: Cargo flow legend only shows defined cargo. ( #10872 )
...
This removes the large mostly-empty grid of cargo buttons when not using a complex industry set.
1 year ago
Jonathan G Rennison
bf1e66b2f3
Add missing <functional> header to src/timer/timer.h
1 year ago
translators
c9c6721a47
Update: Translations from eints
...
esperanto: 44 changes by legoscia
1 year ago
Jonathan G Rennison
6091d7470c
Merge branch 'master' into jgrpp
...
# Conflicts:
# .github/workflows/release-macos.yml
# src/company_gui.cpp
# src/linkgraph/linkgraph.cpp
# src/newgrf_debug_gui.cpp
# src/strgen/strgen_base.cpp
# src/timetable_gui.cpp
1 year ago
Peter Nelson
bae1897826
Change: Include font style in font name for Freetype.
1 year ago
Peter Nelson
9976293c1e
Codechange: Return fontcache font name as std::string.
1 year ago
translators
90fdf17e39
Update: Translations from eints
...
esperanto: 28 changes by legoscia
1 year ago
Loïc Guilloux
c880157518
Fix: Check max member count in squirrel classes ( #10883 )
...
Manual cherry-pick from 23a0620658
1 year ago
Jonathan G Rennison
b02817f262
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/newgrf.cpp
1 year ago
Jonathan G Rennison
ef03d44fb3
Use std::unique_ptr for GRFLineToSpriteOverride
1 year ago
Jonathan G Rennison
f00e0e195f
cpp-btree: Add support for uncopyable/move-only map/multimap value types
1 year ago
PeterN
8ea9c1a133
Fix #10880 : Crash in object window due to incorrect parameter order. ( #10881 )
1 year ago
Jonathan G Rennison
b381a30d2d
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/base_media_func.h
# src/cargopacket.h
# src/gfxinit.cpp
# src/industry_cmd.cpp
# src/window_gui.h
1 year ago
PeterN
876871157f
Fix: Ask FontConfig for the face index when opening fonts. ( #10878 )
...
This allows selection of the correct face in truetype fonts containing
multiple faces.
1 year ago
Jonathan G Rennison
42b3c5fe25
Fix highlight of adjacent rail/road waypoints when only one waypoint type
1 year ago
Jonathan G Rennison
fd4d4d341d
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/animated_tile.cpp
# src/cargopacket.h
# src/cheat_gui.cpp
# src/company_cmd.cpp
# src/company_gui.cpp
# src/date.cpp
# src/disaster_vehicle.cpp
# src/dock_gui.cpp
# src/economy.cpp
# src/engine.cpp
# src/error_gui.cpp
# src/fontcache/spritefontcache.cpp
# src/game/game_gui.cpp
# src/game/game_text.cpp
# src/gfx.cpp
# src/graph_gui.cpp
# src/highscore_gui.cpp
# src/industry_cmd.cpp
# src/lang/dutch.txt
# src/lang/english_AU.txt
# src/lang/english_US.txt
# src/lang/finnish.txt
# src/lang/french.txt
# src/lang/italian.txt
# src/lang/portuguese.txt
# src/lang/russian.txt
# src/lang/turkish.txt
# src/lang/vietnamese.txt
# src/main_gui.cpp
# src/misc_gui.cpp
# src/network/network_gui.cpp
# src/network/network_server.cpp
# src/newgrf.cpp
# src/newgrf.h
# src/newgrf_generic.cpp
# src/news_gui.cpp
# src/openttd.cpp
# src/os/unix/unix.cpp
# src/os/windows/font_win32.cpp
# src/os/windows/win32.cpp
# src/rail_gui.cpp
# src/road_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/misc_sl.cpp
# src/saveload/oldloader_sl.cpp
# src/saveload/saveload.cpp
# src/saveload/saveload.h
# src/script/script_gui.cpp
# src/settings_table.cpp
# src/signs_gui.cpp
# src/smallmap_gui.cpp
# src/smallmap_gui.h
# src/spritecache.cpp
# src/spritecache.h
# src/spriteloader/grf.cpp
# src/station_cmd.cpp
# src/statusbar_gui.cpp
# src/stdafx.h
# src/strgen/strgen_base.cpp
# src/subsidy.cpp
# src/table/settings/difficulty_settings.ini
# src/texteff.cpp
# src/timetable_cmd.cpp
# src/timetable_gui.cpp
# src/toolbar_gui.cpp
# src/town_cmd.cpp
# src/town_gui.cpp
# src/townname.cpp
# src/vehicle.cpp
# src/waypoint_cmd.cpp
# src/widgets/dropdown.cpp
# src/window.cpp
1 year ago
PeterN
101e4e54a1
Fix d9a04ba446: Ensure MD5Hash is initialized. ( #10876 )
...
Not all instances need to be initialized as often they are copied or
written to, but doing all ensures no surprises.
Move the ^= operator to MD5Hash while we're at it.
1 year ago
Jonathan G Rennison
ba11467c02
Fix: Rail waypoint selection window not closed
...
When rail toolbar or rail waypoint build windows closed
1 year ago
Jonathan G Rennison
7615c831aa
Avoid unnecessary checks when removing adjacent level crossing tile
1 year ago
Jonathan G Rennison
0b9b080aa6
Fix closing build waypoint window not closing waypoint selection window
1 year ago
Jonathan G Rennison
a419674157
Add coverage button to waypoint window
1 year ago
Jonathan G Rennison
df5ca1d7fb
Highlight waypoint tiles when adjacent or distant joining
1 year ago
PeterN
584faaf064
Change: Reorganise industry accept/produce arrays. ( #10853 )
...
Use a array of struct for each cargo instead of an array for each statistic.
This makes iterating for acceptance and production much simpler.
pct_transported is now calculated when needed.
1 year ago
Jonathan G Rennison
65159f4b22
Refactor viewport catchment overlay change handling
1 year ago
Jonathan G Rennison
23ab1cb3d0
Show ctrl-click function of shared orders button in tooltip
1 year ago
Jonathan G Rennison
9f24895480
Fix case of Ctrl+Click in English tooltip texts
1 year ago
Jonathan G Rennison
0fd62de4f2
Re-organise interface settings in settings window
...
Fix enable_single_veh_shared_order_gui not being listed
1 year ago
Jonathan G Rennison
f053082478
Viewport map: Use transport colour for road bridge/tunnels and aqueducts
...
In route mode
1 year ago
Loïc Guilloux
db3b086a52
Fix #10867 , 8b93e45: Squirrel compile error exception type changed ( #10869 )
1 year ago
Rubidium
b133328737
Codechange: use std::string over strecat to create the RV capacity string
1 year ago
Rubidium
4fdde00e25
Codechange: use std::string to create the GRF parameter list
1 year ago
Rubidium
fbab94eabb
Codechange: use std::string to create error message about external files
1 year ago
Rubidium
30b9e02dd9
Codechange: replace crashlog filenames with std::string in Crashlog
1 year ago
Rubidium
19304bd3d5
Codechange: replace seprintf with fmt::format for filling the crash log data
1 year ago
Rubidium
f4b0ac2bd4
Codechange: use std::string for formatting settings
1 year ago
Jonathan G Rennison
b5ee8e9e42
Add unset hotkey to toggle showing slopes in viewport map mode
...
See: #522
1 year ago
Jonathan G Rennison
d29cec53e0
Viewport map: Show bridges and tunnels in rail type colour in routes mode
...
See: #522
1 year ago
Jonathan G Rennison
9cb992ab14
Viewport map: Adjust vertical alignment of tunnels
1 year ago
translators
1412ea48ed
Update: Translations from eints
...
esperanto: 268 changes by legoscia
1 year ago
Peter Nelson
09408e8e46
Codechange: Add IsCargoAccepted/Produced() helpers.
1 year ago
Peter Nelson
633f19419d
Codechange: Make more use of GetCargoAccepted/ProducedIndex().
1 year ago
Jonathan G Rennison
5428b6dd9b
GS: Documentation/comment fixes for ScriptAsyncMode
1 year ago
Jonathan G Rennison
cd9930542d
GS: Add GSAsyncMode(bool) class to set async mode of script DoCommands
...
In asynchronous mode, don't wait for result of executed command,
just fire-and-forget, and return estimated cost/result
1 year ago
Jonathan G Rennison
72dcdfafbd
Add setting for server sent commands per frame limit
...
Use higher of this and existing commands per frame limit setting
for server-originating commands, e.g. GS
1 year ago
Jonathan G Rennison
a25e674f06
Add "command" debug category to log commands
1 year ago
Rubidium
29b20718ba
Codechange: use Tthis instead of StrongTypedef, so ==/= does not compare/assign different strong typedefs
1 year ago
translators
9f0e406a51
Update: Translations from eints
...
esperanto: 18 changes by legoscia
1 year ago
Peter Nelson
8931e90302
Cleanup: No need to cound actual cargo to get scroll count.
1 year ago
Peter Nelson
f177ce7c9a
Codechange: Base CargoArray off std::array.
...
This avoids needing to define array accessors and allows use of
default value initialization.
1 year ago
Peter Nelson
74e42e39a8
Codechange: Use CargoArray::GetCount()
1 year ago
Peter Nelson
76516d7f70
Codechange: Use IsValidCargoID/IsValidCargoType.
...
IsValidCargoType() is used only for unmapped IDs.
1 year ago
Peter Nelson
c4ca6a0f74
Codechange: Rename IsCargo..Valid to IsValidCargo..
...
This better fits our naming pattern for this type of function.
1 year ago
Jonathan G Rennison
8bb23e07ba
Merge PR #520 into jgrpp
1 year ago
Jonathan G Rennison
e8748c310c
Merge PR #519 into jgrpp
1 year ago
Jonathan G Rennison
a99418cb69
Revert "Codechange: Explicitly move a few variables to avoid a copy constructor (fixes warning from clang)"
...
This reverts commit 6378a78817
.
Fixes : #521
1 year ago
translators
e9b376d484
Update: Translations from eints
...
catalan: 14 changes by J0anJosep
portuguese: 20 changes by azulcosta
portuguese (brazilian): 15 changes by ericandradex
(cherry picked from commit 27b40da06a
)
1 year ago
Jonathan G Rennison
37b8b59c85
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/date_type.h
# src/linkgraph/linkgraphjob.cpp
# src/linkgraph/linkgraphschedule.cpp
# src/saveload/saveload.h
# src/table/settings/linkgraph_settings.ini
1 year ago
translators
e2827d0e9c
Update: Translations from eints
...
galician: 41 changes by pvillaverde
esperanto: 95 changes by legoscia
portuguese (brazilian): 18 changes by ericandradex
1 year ago
Jonathan G Rennison
9a4512f789
Remove linkgraph duration not day length scaled setting
...
Now always enabled
1 year ago
Jonathan G Rennison
5dd99fb046
Add setting for milliseconds per game tick mode
1 year ago
Jonathan G Rennison
5e8266ac7d
Fix value of payment algorithm setting when loading new vanilla saves
1 year ago
Jonathan G Rennison
8ba1010fb4
Merge branch 'master' into jgrpp
1 year ago
Rubidium
a19a43a4f7
Codechange: use fmt::format and time conversions over "custom" implementation
1 year ago
TELK
6ec28479ea
Update: Korean translation for 0.53.3
1 year ago
Rubidium
eb635b85bb
Fix: work around GCC compiler bug #105120 in fmt
...
The fmt code pushes a pragma option, and later pops is. The intrinsics code
interacts with it via the __OPTIMIZE__ macro. This has been set by the pragma
option push, but not unset/reset to the original with the pop.
Since the pragma is only used for the GCC compiler (not Clang, not MSVC, not
ICC) and in debug mode, just remove the whole pragma handling for it.
1 year ago
Rubidium
187fa3f214
Codechange: update to fmt 10.0.0 and add formatting support for chrono and std types
1 year ago
Rubidium
6f2f38b3ed
Codechange: fmt (and std::format) do explicitly not support enums out-of-the-box
...
That it works for the version we have packaged it pure coincidence, as that is
one of the few versions that due to a bug allow it. So add the appropriate
template specialisations to support it out-of-the-box within OpenTTD.
1 year ago
pvillaverde
49da6b2070
🌐 Update Galician Translations up to 0.53.3
1 year ago
PeterN
bc45c3f66c
Change: Remember waypoint filter string. ( #10857 )
1 year ago
Rubidium
63d9bb93b8
Codechange: migrate from C-style GetString to C++-style GetString
1 year ago
Rubidium
1a179cb297
Codechange: use GetString + StrMakeValid to pass string without colours/font sizes to Debug
1 year ago
Rubidium
00695c29de
Codechange: simplify news string drawing by using StrMakeValid to replaces newlines with spaces
1 year ago
translators
9610705f46
Update: Translations from eints
...
esperanto: 52 changes by legoscia
1 year ago
axet
60540f7df6
Change: Allow dedicated server to use threaded saves. ( #10787 )
...
Co-authored-by: Jonathan G Rennison <j.g.rennison@gmail.com>
1 year ago
Rubidium
2efd88d513
Cleanup: version of strgen/settingsgen was always $Revision$, so remove it
1 year ago
Rubidium
2dbd974d4c
Codechange: prevent using (f)printf/(f)puts over fmt::print
1 year ago
Rubidium
411379f587
Codechange: replace puts with fmt::print
1 year ago
Rubidium
275ebf4509
Codechange: replace fprintf(<FILE*> with fmt::print(<FILE*>
1 year ago
Rubidium
c518293135
Codechange: replace printf with fmt::print
1 year ago
Tyler Trahan
d57046e7ec
Change: Use "Via-Destination-Source" as default station cargodist display ( #10851 )
1 year ago
Jonathan G Rennison
2677c60f11
Don't show different version warning in save window when no file selected
1 year ago
Jonathan G Rennison
3cbd1a5a76
Add conditional order test for whether slot is empty/not empty
1 year ago
Patric Stout
0850193a38
Fix: survey result on crash only worked on Linux ( #10855 )
...
Every OS-specific crashlog handler has their own MakeCrashLog
in some form. In result, only Linux was calling the generic one.
1 year ago
translators
98dffc3157
Update: Translations from eints
...
catalan: 12 changes by J0anJosep
esperanto: 678 changes by legoscia
1 year ago
Rubidium
3323402aaa
Codechange: rename smallvec_type to container_func and use only when needed
1 year ago
Rubidium
80d8c01814
Codechange: replace std::vector + duplicate preventing include with std::set
1 year ago
Rubidium
07860e67e2
Codechange: use fmt::format_to to format the help message
1 year ago
Loïc Guilloux
8d2a0a7da4
Fix #10846 : [Squirrel] Ensure sqvector size does not overflow ( #10848 )
1 year ago
Jonathan G Rennison
7cad92988f
Avoid unnecessary scroll bar resets in refit window
...
When vehicle consist is changed
1 year ago
PeterN
0cbbfd3eae
Codechange: Use display list instead of exclude list for file window. ( #10845 )
...
This simplifies retrieving the correct data for each row when data is
filtered. The background FileList is left intact so that savegame data
does not have to be rescanned when the filter is changed, and sorting
still remains the task of the background FileList.
1 year ago
translators
cdb184f53b
Update: Translations from eints
...
catalan: 14 changes by J0anJosep
dutch: 14 changes by Afoklala
1 year ago
Peter Nelson
6b87fe6540
Codechange: Use std::array for GRF(File|Config) parameters.
...
This simplifies comparison, copying and assignment operations.
1 year ago
Peter Nelson
c23aae96a2
Codechange: Use std::array instead of C array for automatic deep-copies.
1 year ago
Rubidium
acec34a0fe
Cleanup: remove MD5SumToString in lieu of FormatArrayAsHex
1 year ago
Rubidium
d9a04ba446
Codechange: make the MD5 hash/digest/checksum variables a std::array
1 year ago
Jonathan G Rennison
d3eb7242ea
Fix removal of order backups when upgrading airports
1 year ago
Peter Nelson
7934418133
Codechange: Remove comment alignment from GRFConfig.
1 year ago
Peter Nelson
f14479d27d
Codechange: Use std::optional for GRF Parameter list.
1 year ago
Peter Nelson
c51a7f629e
Codechange: GRFParameterInfo no longer needs deep-copy constructor.
1 year ago
translators
fd26658558
Update: Translations from eints
...
russian: 2 changes by Ln-Wolf
1 year ago
Peter Nelson
91e140c722
Codechange: Use unique_ptr for fios company properties.
...
This is the data used to show company names in the saveload window.
1 year ago
Peter Nelson
bf8f24f9a8
Codechange: Use unique_ptr for text layout font mapping.
...
This must stay a pointer as the value passed to other structures.
1 year ago
Peter Nelson
c38df2d589
Codechange: Use std::map instead of custom SmallMap.
1 year ago
Peter Nelson
72018badff
Codechange: Swap SocketList map key/value around.
...
This map is used store socket and address together, and, other than
checking that the address does not already have a socket, the data layout
does not seem particularly important.
However, as address is the key, technically it should not be modified,
and address may self-modify itself during comparisons.
1 year ago
Peter Nelson
f454ec8d63
Fix: Don't rely on static initialization to set up sprite font caches.
...
The order of static initialization is undefined, so this can cause initalization
before relevant caches are initializations.
1 year ago
Jonathan G Rennison
4ca0b43975
Fix train z pos after reversing at wrong-way signalled bridge wormhole
...
Could cause train disconnection or wrong wagon spacing
1 year ago
translators
418888ac23
Update: Translations from eints
...
romanian: 11 changes by bnegrut
turkish: 14 changes by densxd
1 year ago
Peter Nelson
83f2ad500e
Codechange: stdarg.h include not needed as cstdarg is included.
1 year ago
Peter Nelson
56085be9bd
Codechange: Move includes for common STL headers to stdafx.
1 year ago
Jonathan G Rennison
29495b4e3d
Tracerestrict: Fix default state of copy/share button planes
1 year ago
Jonathan G Rennison
731f2fb46e
Tracerestrict: Add button to share program onto other signals
1 year ago
Jonathan G Rennison
9f89f1fb42
Tracerestrict: Do not change copy button selection plane when active
1 year ago
translators
a5cf362886
Update: Translations from eints
...
english (au): 14 changes by krysclarke
english (us): 14 changes by 2TallTyler
vietnamese: 14 changes by KhoiCanDev
korean: 19 changes by telk5093
italian: 14 changes by Rivarossi
russian: 14 changes by Ln-Wolf
finnish: 14 changes by hpiirai
danish: 22 changes by bscargo
portuguese: 14 changes by azulcosta
polish: 14 changes by pAter-exe
1 year ago
Rubidium
e9c03f0dad
Cleanup: remnants of C-style strings in saveload
1 year ago
Rubidium
52a7c69974
Codechange: rework Gamelog changes from union to classes
1 year ago
Jonathan G Rennison
cd0cc13724
Suppress calls to AdjustGUIZoom during startup phase
...
See: #518
1 year ago
translators
389b66bd16
Update: Translations from eints
1 year ago
Jonathan G Rennison
9e1066049f
Reduce strength of station rating source station penalty on truncation
1 year ago
PeterN
40f567d464
Fix #10811 : Crash getting row from non-resizable widget. ( #10833 )
...
GetScrolled*FromWidget took line height from the widget's resize_y value,
however not all widgets are resizable, resulting in a division-by-zero.
Allow passing line height explicitly in cases where a widget is not
resizable.
1 year ago
PeterN
e4fd9d41d3
Codechange: Use std::any_of() ( #10830 )
...
When the result of std::find_if is compared only with end()
then '!= end()' is replaced with any_of().
Just... there's only one.
1 year ago
Jonathan G Rennison
90abfff45c
Fix adjacent level crossings left barred after removing middle of crossing
...
See: #517
1 year ago
Patric Stout
199e41c762
Codechange: use default dtor instead of empty ( #10826 )
1 year ago
Patric Stout
7634553d22
Feature: opt-in survey when exiting a game
...
On first start-up, the game will ask if you want to participate
in our automated survey. You have to opt-in, and can easily opt-out
(via the Options) at any time.
When opt-in, whenever you exit a game, a JSON blob will be send
to the survey server hosted by OpenTTD. This JSON blob contains
information that gives a global picture of the game just played:
- What settings were used
- How many humans vs AIs
- How long the game has been played
- Basic information about the OS / CPU
All this information is kept very generic, so there is no
chance we send private information to our survey server.
Nothing in the JSON blob could identify you as a person; it
mostly tells about the game played. At any time you can see
what the JSON blob includes, by pressing the "Preview Survey
Results" button in-game.
1 year ago
Rubidium
62fda0f505
Codechange: remove manual allocation/free for SQ_instance
1 year ago