Commit Graph

56317 Commits

Author SHA1 Message Date
Peter Nelson
152b0cac34 Codechange: Return update nwid_begin instead of count.
This avoids needing to keep track of how many widget parts have been consumed, instead we only to ensure nwid_begin < nwid_end.
2023-09-04 10:20:45 +01:00
Peter Nelson
e8015e497d Codechange: Use begin/end of nwidget parts of begin/length.
This simplifies processing nwidget parts as, unlike the remaining length, the pointer to the end of the list never changes. This is the same principle as we use(d) for tracking end instead of length for C-style strings.

And this removes 160~ instances of the lengthof() macro.
2023-09-04 10:20:45 +01:00
Peter Nelson
e4613fc04c Codechange: Allow using more than 65536 NewGRF string IDs.
NewGRF string allocation allowed up to 524288 strings, however stringid was passed as uint16_t which limits to 2^16.
2023-09-04 09:49:09 +01:00
Peter Nelson
3e762af2d1 Change: Replace fixed length _grf_text array with vector.
Additionally reshuffle GRFTextEntry for better alignment.

This removes a mostly-unused static 20MB allocation.
2023-09-04 09:49:09 +01:00
Jonathan G Rennison
891874a145 TBTR: Remove unused variable 2023-09-04 01:14:35 +01:00
Jonathan G Rennison
8481fb4b7b Fix compiler warnings on Windows ARM64 2023-09-04 01:00:30 +01:00
Jonathan G Rennison
44d4d4944c Version: Committing version data for tag: jgrpp-0.55.0 2023-09-04 00:38:45 +01:00
Jonathan G Rennison
f51d51de40 Fix compiler warning in BuildReplacementMultiPartShip 2023-09-04 00:07:57 +01:00
Jonathan G Rennison
0e6decbdfb Fix compiler warning on Windows ARM64 2023-09-04 00:06:30 +01:00
Jonathan G Rennison
3856891467 Strgen: Fix compiler warning in LangString constructor 2023-09-04 00:04:54 +01:00
Jonathan G Rennison
597382e989 Build: Fix MacOS compilation 2023-09-04 00:02:45 +01:00
Jonathan G Rennison
ed0ee16bf9 Build: Fix MinGW compilation 2023-09-03 21:56:44 +01:00
Jonathan G Rennison
be13d8d970 Update low level changes document 2023-09-03 20:58:25 +01:00
translators
dadf5182d8 Update: Translations from eints
english (au): 2 changes by krysclarke
russian: 3 changes by Ln-Wolf
finnish: 2 changes by hpiirai
portuguese (brazilian): 2 changes by pasantoro
2023-09-03 18:38:15 +00:00
Jonathan G Rennison
80fa53bc58 Allow unpausing upstream savegames using PM_COMMAND_DURING_PAUSE 2023-09-03 18:19:56 +01:00
Jonathan G Rennison
428e1c364e Enable picker tool for rail signals 2023-09-03 00:29:36 +01:00
Jonathan G Rennison
bd378a2842 Reorder struct CargoPacket
Reduce size from 40 bytes to 32 bytes.
See: https://github.com/OpenTTD/OpenTTD/pull/11201
2023-09-02 22:18:42 +01:00
PeterN
bd150df914 Codechange: Reorder some high-use structs to reduce their size. (#11201)
This reduces GoodsEntry from 144 to 136 bytes (thereby reducing Station from 9704 bytes to 9192 bytes), and CargoPacket from 40 bytes to 32 bytes.
2023-09-02 20:56:36 +00:00
Jonathan G Rennison
fabe507b08 Fix 2ae4e5bd: Wrong upstream save/load version for RV path cache 2023-09-02 21:18:03 +01:00
Jonathan G Rennison
c0598d34bf Merge branch 'master' into jgrpp
# Conflicts:
#	src/console.cpp
#	src/os/os2/os2.cpp
#	src/os/unix/font_unix.cpp
#	src/strgen/strgen.h
#	src/strgen/strgen_base.cpp
#	src/table/settings/gui_settings.ini
2023-09-02 20:48:58 +01:00
translators
5c2e4ee6fe Update: Translations from eints 2023-09-02 18:38:13 +00:00
Michael Lutz
fb6d85dbe5 Add: [Script] Custom news message text for industry SetProductionLevel.
(cherry picked from commit 0089323542)
2023-09-02 19:33:00 +01:00
glx22
b0f8890ba5 Codechange: [CMake] detect source files with duplicate names 2023-09-02 20:32:44 +02:00
glx22
c77184aa35 Codechange: [CMake] reduce code duplication 2023-09-02 20:32:44 +02:00
Michael Lutz
4c6ed36b6a Add: [Script] Game script control of industry production level.
(cherry picked from commit 1c56991213)
2023-09-02 19:26:54 +01:00
Andy
7839a71d7e Add: [Script] GSIndustry.GetConstructionDate() method (#11145)
(cherry picked from commit ce9305a5ee)
2023-09-02 19:26:54 +01:00
mrmbernardi
74c0678015 Feature: [GS] Goal destination can be updated (#10817)
(cherry picked from commit 35ef6c1723)
2023-09-02 19:26:54 +01:00
Bouke Haarsma
7e54418022 Codechange: workaround CMake/Xcode duplicate file name issue (#11186)
Having a library with files with the same name isn't supported in CMake's Xcode project file generation: https://gitlab.kitware.com/cmake/cmake/-/issues/20501. One of the files is renamed to work around this bug.
2023-09-02 19:46:52 +02:00
Patric Stout
6550f3a049 Fix 3effb893: mention GSAsyncMode in changelog (#10924)
(cherry picked from commit 6b1c38e303)
2023-09-02 18:21:18 +01:00
Michael Lutz
0089323542 Add: [Script] Custom news message text for industry SetProductionLevel. 2023-09-02 16:20:59 +02:00
Michael Lutz
1c56991213 Add: [Script] Game script control of industry production level. 2023-09-02 16:20:59 +02:00
TELK
e7010972b7 Update: Korean translation 2023-09-02 12:14:36 +01:00
frosch
6e96482230 Fix #11230: Group list widget layout failed, if dropdown widgets were higher than the font height. (#11231)
(cherry picked from commit 236ec41fa2)
2023-09-02 11:47:26 +01:00
mrmbernardi
a5c8365aa4 Feature: Setting to disallow level crossings with competitors (#10755) 2023-09-02 12:46:24 +02:00
frosch
236ec41fa2 Fix #11230: Group list widget layout failed, if dropdown widgets were higher than the font height. (#11231) 2023-09-02 12:45:19 +02:00
Jonathan G Rennison
7c28ee0213 Autoreplace: Add support for multi-cargo ships 2023-09-01 23:35:42 +01:00
Jonathan G Rennison
69b2ca9983 Fix da35e7bb: Wrong engine ID in Vehicle::NeedsServicing() 2023-09-01 23:22:41 +01:00
translators
6ab169fbe0 Update: Translations from eints
dutch: 1 change by Afoklala
2023-09-01 18:38:57 +00:00
Jonathan G Rennison
da35e7bb35 Autoreplace: Handle trivial replacements of mixed cargo articulated engines 2023-09-01 19:20:11 +01:00
Loïc Guilloux
568eafe661 Fix #11179, a979d9c: Don't start more competitors than allowed (#11185)
(cherry picked from commit 02be6ab6ba)
2023-09-01 18:47:46 +01:00
Jonathan G Rennison
dc57a51e8a VarAction2: Do not scan into procedures for ACOM_CB36_PROP analysis 2023-08-31 20:46:16 +01:00
Patric Stout
7afd686541 Codechange: add tests for GS <-> AdminPort JSON conversion (#11252)
While at it, fix a bug where booleans were made integers.
2023-08-31 19:38:15 +00:00
Patric Stout
993e7be707 Fix: [Script] GSAdmin.Send() could generate invalid JSON (#11250) 2023-08-31 16:52:52 +00:00
glx22
4eddec9e79 Add: [Emscripten] Support for bootstrapping 2023-08-31 12:59:12 +02:00
glx22
3d1c4a8589 Codechange: [Emscripten] Improve syncfs synchronisation on exit/abort 2023-08-31 12:59:12 +02:00
Patric Stout
75d3dc0a19 Codechange: [Emscripten] remove "relative_mode" parameter from -vsdl as it doesn't exist (#11249) 2023-08-31 12:04:22 +02:00
Patric Stout
502414b567 Fix: [Emscripten] config not saved on exit game (#11248)
When changing a Game Option and pressing Exit Game, the changes
were not actually stored. This because the post-mainloop code
was never executed for Emscripten.
2023-08-31 10:10:11 +01:00
Jonathan G Rennison
672382f960 Tracrestrict: Fix non-train slot windows allowing unusable sort modes 2023-08-30 23:22:37 +01:00
Jonathan G Rennison
a29c01493d Tracerestrict: Fix train texts used in non-train slots windows
See: #593
2023-08-30 23:16:21 +01:00
Patric Stout
2f96ccc18a Add: [CI] Create and store breakpad symbols for releases (#11247)
Additionally, also store PDB and exe files on the Symbol Server
for easier debugging with MSVC.
2023-08-30 18:27:15 +00:00