Commit Graph

43235 Commits

Author SHA1 Message Date
PeterN
2a2443dd01 Feature: Create group of vehicles from manage vehicle list button. (#10890) 2023-06-18 20:48:04 +01:00
Rubidium
70de70bdcd Codechange: refactor code to remove need for stredup 2023-06-18 21:22:28 +02:00
Rubidium
74924c8186 Codechange: includes must be before 'safeguards.h' 2023-06-18 21:22:14 +02:00
Jonathan G Rennison
551d581215 Unix crash log: Fix stack trace formatting when using addr2line 2023-06-18 20:17:38 +01:00
Niels Martin Hansen
ed3f14686d Fix: Layouter::GetCharAtPosition counting wrong
Bug introduced in commit 60399e
2023-06-18 21:07:40 +02:00
Jonathan G Rennison
861c033caf Crash log: Include game mode in config info 2023-06-18 20:00:46 +01:00
translators
31cc349a09 Update: Translations from eints
swedish: 51 changes by SkogisREAL
2023-06-18 18:43:02 +00:00
Jonathan G Rennison
2b897e6694 Cargo payment rate graph: Use minutes for x-axis if in minutes mode
See: #541
2023-06-18 19:37:18 +01:00
Jonathan G Rennison
b080433394 Cargo payment rate graph: Scale X-axis by day length
See: #541
2023-06-18 19:05:02 +01:00
Rubidium
09f585b772 Codechange: use std::string over stredup+free for splitting font name 2023-06-18 18:32:20 +02:00
Jonathan G Rennison
a7a8f4c695 Windows crash log: Don't bother writing raw stack if it can be decoded
The raw values are almost always useless
2023-06-18 15:46:13 +01:00
Jonathan G Rennison
bcab44dc98 Windows crash log: Fix stack overflow in crash dialog window setup
Excessive stack use for crash log text conversion buffers
2023-06-18 15:38:33 +01:00
Jonathan G Rennison
d211ef557a Windows crash log: Handle crash log faults (MSVC) 2023-06-18 15:38:26 +01:00
Jonathan G Rennison
846737e56a Fix refit in station with articulated vehicles with no capacity in leading part 2023-06-18 11:08:35 +01:00
Loïc Guilloux
1d9bc23525 Fix #10868: [Script] Handle errors when loading savegame data on stack (#11029) 2023-06-18 12:03:59 +02:00
Jonathan G Rennison
dadebfa759 Debug: Show engine cargo/refit values 2023-06-18 10:05:48 +01:00
Jonathan G Rennison
051cb29f7a Debug: Show engine misc flags for all vehicle types 2023-06-18 10:05:29 +01:00
Rubidium
381e8b69d2 Codechange: make size and offset size_t 2023-06-18 09:50:11 +02:00
Rubidium
4e6733cc6e Codechange: use args.GetParam(offset) over *args.GetPointerToOffset(offset) 2023-06-18 07:10:10 +02:00
Rubidium
e404ba0631 Codechange: generify GetRemainingParameters to allow custom offsets 2023-06-18 07:09:59 +02:00
translators
9215e36300 Update: Translations from eints
vietnamese: 2 changes by KhoiCanDev
finnish: 2 changes by hpiirai
danish: 2 changes by bscargo
2023-06-17 18:40:32 +00:00
Jonathan G Rennison
410d5bdc55 Spread tile loop iterations over all ticks when using day length > 1
See: #545
2023-06-17 19:32:33 +01:00
Jonathan G Rennison
a6b625eea3 Fix #10993: Crash log when font caches not initialised (#11024)
See also: #10836
2023-06-17 17:56:27 +01:00
Jonathan G Rennison
8c600fd480 Use std::all_of instead of std::count for checking if all 0 2023-06-17 17:22:59 +01:00
Jonathan G Rennison
32ec1bc77b Add hotkey for picker tool in scenario editor 2023-06-17 17:05:33 +01:00
Jonathan G Rennison
371a555324 Disable picker tool in spectator mode 2023-06-17 17:00:49 +01:00
Rubidium
1d902a97ce Codechange: move StringParameters to strings_internal.h 2023-06-17 12:14:11 +02:00
Rubidium
ad048b143a Codechange: move implementation of Set/GetDParam to strings.cpp 2023-06-17 12:14:11 +02:00
Rubidium
dd53a738bb Codechange: automatically set/check the correct type for string parameters/genders 2023-06-17 11:02:31 +02:00
Rubidium
836541b41c Codechange: use SetDParam and CopyOutDParam for tooltips 2023-06-17 10:01:19 +02:00
Rubidium
ac0c932ce7 Codechange: use SetDParam to set measurement tooltip parameters 2023-06-17 10:01:19 +02:00
Jonathan G Rennison
495db43b72 Network: Defer deletion of client and server game socket handler
This fixes various use after free scenarios in error handling paths
2023-06-16 21:18:35 +01:00
Jonathan G Rennison
532d3881cd Network: Fix error logging for game and admin server HandlePacket
Don't invent a packet type in the log message if we can't/don't
read a packet type at all
2023-06-16 21:18:35 +01:00
Jonathan G Rennison
ee8b03e8da Fix: Crash when failing to load a game into a dedicated server at startup (#11021)
Using the -g switch
2023-06-16 19:41:26 +01:00
PeterN
ed06c6bdcf Codechange: Use vector when migrating old savegame orders. (#11020) 2023-06-16 19:40:24 +01:00
Jonathan G Rennison
afe5af5dbb Fix: Crash when failing to load a game into a dedicated server at startup
Using the -g switch
2023-06-16 17:39:31 +01:00
PeterN
fc2510e2ba Codechange: Use std::vector for midifile's ByteBuffer. (#11019) 2023-06-16 17:04:46 +01:00
Owen Rudge
1a3d1bca59 Remove: OS/2 port 2023-06-16 14:29:14 +01:00
Jonathan G Rennison
7af34aaadd Fix NetworkAddChatMessage when MAX_CHAT_MESSAGES is 0 2023-06-16 01:21:38 +01:00
Jonathan G Rennison
3d2dc77aa2 Network: Change protocol for game/rcon/settings password auth
Instead of sending a hash, do a DH/X25519 key exchange
using the password.
This also allows authenticating the associated rcon payload and response.
2023-06-15 21:33:41 +01:00
Rubidium
d4c2043294 Codechange: remove a number of unneeded c_str() calls 2023-06-15 22:14:45 +02:00
Jonathan G Rennison
9042eb338f Network: Simplify stringifying of random key strings 2023-06-15 21:12:48 +01:00
Jonathan G Rennison
b4721c898d Serialisation: Add view/span variants of binary receive methods 2023-06-15 20:56:15 +01:00
Jonathan G Rennison
efc4cd4eff Add missing data() method to span 2023-06-15 20:56:15 +01:00
translators
aae8f40b9f Update: Translations from eints
english (au): 2 changes by krysclarke
korean: 2 changes by telk5093
russian: 2 changes by Ln-Wolf
french: 2 changes by ottdfevr
portuguese: 2 changes by azulcosta
portuguese (brazilian): 2 changes by ericandradex
polish: 2 changes by pAter-exe
2023-06-15 18:41:48 +00:00
Loïc Guilloux
1cd49bf5e5 Fix ca1e34c: [Script] Wrong value printed for {RAW_STRING} (#11011) 2023-06-14 22:07:11 +00:00
Jonathan G Rennison
c46afa04f7 Use pos TileVirtXY for aircraft crash tile
See: #549
2023-06-14 22:43:41 +01:00
Jonathan G Rennison
d6787c4731 Fix f9f1cb21: Setting saveload type
See: #548
2023-06-14 22:29:12 +01:00
Jonathan G Rennison
76a9e280c2 Network: De-duplicate getting random bytes with fallback 2023-06-14 22:18:21 +01:00
Jonathan G Rennison
b18d3c9603 Network: Auto-kick clients after too many failed rcon/settings attempts 2023-06-14 21:58:35 +01:00