translators
c3457cd4c0
Update: Translations from eints
...
hungarian: 3 changes by vargaviktor
ukrainian: 10 changes by imlystyi
2025-03-28 04:44:47 +00:00
Peter Nelson
529fb88325
Codechange: Use template specialisation and instantiation for BaseMedia methods.
...
Specialisations seem to be the correct way to specialise, rather than redefining the base template.
This removes a macro which instantiated methods individually.
2025-03-27 18:57:53 +00:00
Peter Nelson
3375dc3095
Codechange: Use traits to define BaseSet parameters.
2025-03-27 18:57:53 +00:00
Peter Nelson
6914d99778
Codechange: Split baseset type definitions into separate files.
2025-03-27 18:57:53 +00:00
Peter Nelson
9feaa6b7bc
Codechange: Use vector/unique_ptr to manage network game information. ( #13902 )
...
Replaces linked list with manual memory management.
2025-03-27 18:48:41 +00:00
Peter Nelson
0b3619ea35
Codechange: Use unique_ptr to manage blitters. ( #13904 )
2025-03-27 08:38:58 +00:00
translators
65cabf4c87
Update: Translations from eints
...
ukrainian: 39 changes by imlystyi
2025-03-27 04:46:01 +00:00
Loïc Guilloux
6bf405eb18
Codechange: Remove Game::GetGameInstance() (duplicate of Game::GetInstance()) ( #13901 )
2025-03-26 22:41:41 +00:00
Peter Nelson
ff08a22aa4
Codechange: Simplify AI/GameConfig::GetConfig. ( #13900 )
...
Reorganise these methods to reduce nesting and remove a raw pointer to a unique_ptr.
2025-03-26 21:53:05 +00:00
Peter Nelson
325f7f9767
Codechange: Use EnumBitSet for GoodsEntry status. ( #13899 )
2025-03-26 21:22:33 +00:00
Peter Nelson
5331389765
Codechange: Pass NewsItem by reference. ( #13898 )
2025-03-26 18:56:33 +00:00
Peter Nelson
422ff9dbd8
Codechange: Use std::unique_ptr for ai/game config.
2025-03-26 10:54:11 +00:00
Peter Nelson
7f3820fa7e
Codechange: Load check data is only interested in landscape and starting_year.
2025-03-26 10:54:11 +00:00
translators
df750d44fd
Update: Translations from eints
...
latvian: 53 changes by lexuslatvia
2025-03-26 04:44:20 +00:00
Björn Wärmedal
d009bfc47b
Codechange: Add vehicle owner to crash event ( #13878 )
...
Co-authored-by: Björn Wärmedal <bjorn.warmedal@lumera.com>
2025-03-25 22:53:44 +01:00
Peter Nelson
fb008436b8
Codechange: Use std::unique_ptr for script info/library instances. ( #13892 )
2025-03-25 21:07:02 +00:00
Peter Nelson
47d078c033
Codechange: Use EnumBitSet for RailTypes.
2025-03-25 20:15:48 +00:00
Peter Nelson
732109e444
Codechange: Use EnumBitSet for RoadTypes.
2025-03-25 20:15:48 +00:00
Peter Nelson
819e097d6e
Codechange: Use separate RoadTypes mask to list road or tram roadtypes.
...
This simplifies logic reduces ambiguity.
2025-03-25 20:15:48 +00:00
frosch
c105adcd96
Codechange: Encode case/gender/plural choice lists without null termination, only length prefix. ( #13876 )
2025-03-25 20:32:40 +01:00
frosch
25005cff16
Codefix: std::string_view::data() is not necessarily null terminated. ( #13891 )
2025-03-25 20:32:19 +01:00
Peter Nelson
93016b9a92
Fix #13842 : Close industry production graph if industry is removed. ( #13890 )
2025-03-25 17:58:59 +00:00
Peter Nelson
9f94cadd68
Codefix: GRF-local cargo id is not a CargoType. ( #13888 )
2025-03-25 17:12:43 +00:00
Peter Nelson
adb20f99ea
Fix: Autoreplace rail/road list only listed buildable types. ( #13887 )
...
Instead list all possible types which includes hidden types compatible with buildable types.
2025-03-25 08:22:30 +00:00
translators
1fb4c44bc7
Update: Translations from eints
...
chinese (traditional): 20 changes by KogentaSan
hungarian: 61 changes by vargaviktor
2025-03-25 04:47:17 +00:00
Peter Nelson
79ef4e98fe
Codechange: Use std::swap() instead of Swap() ( #13883 )
2025-03-24 23:47:34 +00:00
Peter Nelson
8a53ccf8f1
Fix: Not enough parameters supplied for Autoreplace window caption. ( #13886 )
2025-03-24 23:01:04 +00:00
frosch
488cda728d
Codechange: Use std::string and std::string_view instead of C strings.
2025-03-24 23:10:13 +01:00
frosch
d7768f5f51
Codechange: Use more specific integer types than 'int'.
2025-03-24 23:10:13 +01:00
frosch
b10433715d
Codechange: Turn out parameters into return values.
2025-03-24 23:10:13 +01:00
frosch
77af1c89c8
Codechange: Split _show_todos into individual bool flags.
2025-03-24 23:10:13 +01:00
frosch
f8292a8d11
Codechange: Remove unused/obscure strgen feature for relative offsets in plural/gender choice lists.
2025-03-24 23:10:13 +01:00
frosch
4fc0900865
Codechange: Reorder functions in strgen and reduce external symbols.
2025-03-24 23:10:13 +01:00
Peter Nelson
b96b26ef15
Codechange: Rename short CargoType parameters `cargo`. ( #13848 )
...
Rename CargoType variables and parameters using short or meaningless names.
2025-03-24 18:18:21 +00:00
Loïc Guilloux
bdea29c414
Fix #13875 : [Script] be less strict about empty constructor format for doxygen ( #13882 )
2025-03-24 13:38:10 +01:00
translators
997f8abaec
Update: Translations from eints
...
chinese (traditional): 23 changes by KogentaSan
2025-03-24 04:46:50 +00:00
Peter Nelson
fc7b6c6cbb
Codechange: Use .fill() to clear an array instead of assigning a new array. ( #13880 )
...
Avoids allocating a temporary on the stack.
2025-03-23 22:09:45 +00:00
frosch
ca801d55d5
Fix: [NewGRF] Display an error, if NewGRF reference out-of-bounds string parameters in gender/plural choices. ( #13881 )
2025-03-23 20:43:12 +01:00
Peter Nelson
42eb513897
Codechange: Make use of emplace_back's return value. ( #13879 )
2025-03-23 18:34:04 +00:00
frosch
5aa4ad5135
Codechange: Pass unformatted strings from GetStringPtr as std::string_view. ( #13871 )
2025-03-23 19:23:31 +01:00
Peter Nelson
234c9fb3bd
Codechange: Use EnumBitSet for SpriteFlags.
2025-03-23 18:01:02 +00:00
Peter Nelson
5abe7c1386
Codechange: Use default initialisation for 32bpp_sse2's SpriteData.
...
Avoids using memset.
2025-03-23 18:01:02 +00:00
Peter Nelson
828e808444
Codechange: Split NewGRF loader into separate Action handlers.
2025-03-23 16:59:36 +00:00
Peter Nelson
0b7fa11a5b
Codechange: Move NewGRF string mapping to own file.
2025-03-23 16:59:36 +00:00
Peter Nelson
2cb389946d
Codechange: Move GrfProcessingState to separate file.
...
Allows reuse by other files.
2025-03-23 16:59:36 +00:00
Peter Nelson
fe9dfa2b08
Codechange: Move NewGRF ByteReader to own file.
2025-03-23 16:59:36 +00:00
frosch
84f785b06b
Codechange: Pass GRF name as std::string to UpdateNewGRFScanStatus. ( #13870 )
2025-03-23 16:58:43 +01:00
Peter Nelson
8b4114d709
Fix #13849 : Settings in old saves could be overridden by defaults. ( #13874 )
...
Resolved by resetting settings to default values before the OPTS and PATS chunks are loaded.
2025-03-23 15:55:55 +00:00
Peter Nelson
21d2a94809
Codechange: Use EnumBitSet for GrfMiscBits. ( #13873 )
2025-03-22 21:07:59 +00:00
frosch
af49320637
Fix: [NewGRF] Plurals and genders did not work in strings with cases. ( #13853 )
2025-03-22 21:41:27 +01:00