Jonathan G Rennison
844322c5a8
Wallclock format: Add form which accepts a std::time_t
2023-02-15 22:02:23 +00:00
Jonathan G Rennison
fef39b5797
Use backup/restore wrappers for various _cur_dpi changes
2023-02-15 22:02:23 +00:00
Jonathan G Rennison
85889143c7
Add mode to AutoRestoreBackup to not change backed up value
2023-02-15 22:02:23 +00:00
Patric Stout
0722bb3bf4
Change: try to detect the CA file/path for CURL ( #10481 )
...
The default is given compile-time, not run-time. So libcurl is
of no use to us.
Current list is kindly borrowed from
https://go.dev/src/crypto/x509/root_linux.go
2023-02-15 22:58:43 +01:00
Patric Stout
16352559f2
Change: release with (much) newer versions of dependencies for Generic Linux ( #10484 )
2023-02-15 22:18:23 +01:00
Patric Stout
ea90fa24f8
Codechange: move curl into a thread so simplify code ( #10480 )
...
With a thread, we can just run curl_easy_perform() and let CURL
and threads handle the blocking part.
With async solution there are too many things to keep track of,
and it makes "when to update the GUI" tricky. By using a thread
that all gets a lot simpler, as the game-thread and download-thread
run side-by-side.
This is similar to how the WinHttp backend already works.
2023-02-15 21:56:19 +01:00
Jonathan G Rennison
2b4b2f605d
Github: Enable workflow_dispatch for codeql
2023-02-15 00:07:57 +00:00
translators
228b34c2bf
Update: Translations from eints
...
english (au): 1 change by krysclarke
czech: 2 changes by jachymozo
finnish: 1 change by hpiirai
2023-02-14 18:46:38 +00:00
dP
fe2c8a1240
Codechange: Decouple INDUSTRY_CTRL into separate commands ( #10475 )
2023-02-14 11:29:11 +01:00
Jonathan G Rennison
a08ce897c0
Merge pull request #484 from telk5093/jgrpp
...
Update: Korean translation up to 85de07d
2023-02-13 23:58:43 +00:00
Jonathan G Rennison
a4bc4a91d7
TBTR: Fix inconsistent use of override keyword
2023-02-13 23:58:03 +00:00
Jonathan G Rennison
3b9015ef7a
Fix successfully mapped properties in HandleAction0PropertyDefault
2023-02-13 23:49:53 +00:00
frosch
d7fcb420c4
Fix: compilation with libcurl from 2013.
2023-02-13 22:45:07 +01:00
frosch
274bcf8d80
Fix 64523709
: rpm uses different package names than deb.
2023-02-13 22:45:07 +01:00
Jonathan G Rennison
c756b8de8e
GRF: Add second success indicator mechanism for feature tests and ID mappings
2023-02-13 20:05:30 +00:00
translators
04847b1208
Update: Translations from eints
...
english (us): 1 change by 2TallTyler
portuguese: 2 changes by ppxppy
2023-02-13 18:47:38 +00:00
TELK
dbca0780e5
Update: Korean translation up to 85de07d
2023-02-13 21:55:22 +09:00
Jonathan G Rennison
85de07dee1
Documentation: Clarify that more_objects_per_grf must be tested for to enable it
2023-02-12 22:33:17 +00:00
Jonathan G Rennison
55146f459f
Ensure that SortRailTypes sort is deterministic
...
Use rail type ID as tie-breaker
2023-02-12 22:18:23 +00:00
Jonathan G Rennison
64699d94c9
GRF: Only use extended bytes for object IDs if feature is tested for
2023-02-12 22:18:23 +00:00
Jonathan G Rennison
a85b3d7de7
GRF: Add generic mechanism to observe which features have been tested
2023-02-12 22:18:23 +00:00
Jonathan G Rennison
53835cef8e
Documentation: Add documentation for more objects per GRF
2023-02-12 20:35:18 +00:00
Jonathan G Rennison
dceafaf2db
GRF: Initial support for > 255 road stop specs per GRF
...
Add new variable for road stop info of nearby tiles
Bump roadstops version
2023-02-12 20:35:18 +00:00
Jonathan G Rennison
cfbd6406e1
Documentation: Fix NML documentation of variable nearby_tile_road_stop_id
2023-02-12 19:32:37 +00:00
Jonathan G Rennison
c592b38067
VarAction2: Combine object slope ^ foundation_change_tile_slope sequence
2023-02-12 19:32:37 +00:00
Jonathan G Rennison
76648b9dca
Debug: Show name of extended variables referenced via variable 0x7B
2023-02-12 19:32:37 +00:00
translators
695ce0ab09
Update: Translations from eints
...
swedish: 3 changes by joeax910
italian: 1 change by Rivarossi
russian: 1 change by Ln-Wolf
ukrainian: 1 change by serg-bloim
latvian: 7 changes by lexuslatvia
2023-02-12 18:45:01 +00:00
Jonathan G Rennison
b539799c0a
GRF: Fix c0c9c66f
: ObjectMapSpriteGroup with missing object specs
2023-02-12 13:05:51 +00:00
Patric Stout
64523709bf
Add: use https:// for content-service connections ( #10448 )
...
This requires the use of WinHTTP (for Windows) or libcurl (for all
others except Emscripten). Emscripten does not support http(s)
calls currently.
On Linux it requires ca-certificates to be installed, so the HTTPS
certificate can be validated. It is really likely this is installed
on any modern machine, as most connections these days are HTTPS.
(On MacOS and Windows the certificate store is filled by default)
Reminder: in case the http(s):// connection cannot be established,
OpenTTD falls back to a custom TCP-based connection to fetch the
content from the content-service. Emscripten will always do this.
2023-02-12 12:07:31 +01:00
Jonathan G Rennison
ae9b416684
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/ai/ai_core.cpp
# src/ai/ai_gui.cpp
# src/ai/ai_instance.cpp
# src/console_cmds.cpp
# src/engine_type.h
# src/game/game_gui.cpp
# src/game/game_instance.cpp
# src/goal.cpp
# src/goal_cmd.h
# src/lang/english.txt
# src/lang/estonian.txt
# src/network/network_client.cpp
# src/newgrf.cpp
# src/newgrf_generic.h
# src/openttd.cpp
# src/saveload/saveload.h
# src/script/api/script_log.cpp
# src/script/api/script_town.cpp
# src/settings_table.cpp
# src/station_cmd.cpp
# src/station_cmd.h
# src/station_map.h
# src/strings.cpp
# src/table/settings/difficulty_settings.ini
# src/table/settings/gui_settings.ini
# src/tbtr_template_gui_main.h
# src/timetable_cmd.cpp
# src/timetable_cmd.h
# src/timetable_gui.cpp
# src/town_gui.cpp
# src/train_gui.cpp
# src/water_cmd.cpp
2023-02-11 23:05:22 +00:00
translators
09f7f32b8d
Update: Translations from eints
...
ukrainian: 2 changes by serg-bloim
2023-02-11 18:44:57 +00:00
Jonathan G Rennison
36722592b4
Fix scrollbars of text windows not being inited at window creation
2023-02-11 17:19:13 +00:00
Jonathan G Rennison
c0c9c66f7b
GRF: Initial support for > 255 objects per GRF
2023-02-11 16:22:25 +00:00
Loïc Guilloux
a2c8168924
Fix #10465 : Delay closing of network join progress window ( #10466 )
2023-02-11 12:32:45 +01:00
Bilongozhko, Serhii (Contractor)
35ad964c6b
Feature: Ctrl+Click to reset late counter for the entire vehicle group.
2023-02-11 09:48:09 +01:00
SamuXarick
231935fccd
Change: Show buy company dialog window even when playing in the AI company
2023-02-11 09:43:47 +01:00
SamuXarick
43ce73db86
Fix: [Script] Use Money instead of int32 for presenting the value of a company to AIs
2023-02-11 09:43:47 +01:00
Jonathan G Rennison
26dc69ff13
Use a std::vector for Object::counts
2023-02-11 00:30:40 +00:00
Peter Nelson
c95a3be243
Change: Expose ObjectSpec vector to simplify iteration.
...
(cherry picked from commit 51b112139235c66c3adb2c3a75919fc1d3eff9fc)
2023-02-11 00:30:40 +00:00
Peter Nelson
74e4556a85
Codechange: Store objectspecs in std::vector instead of flat array.
...
(cherry picked from commit 1ae263c5467105820e4d770b3d57d25ba01e22b1)
2023-02-11 00:30:40 +00:00
Peter Nelson
d34e1bbbc1
Codechange: Bind objectspecs to classes once all finalised.
...
(cherry picked from commit 5f4a8f730b8982cbec7eec5e2331f0bc9217e69e)
2023-02-11 00:30:40 +00:00
Peter Nelson
9cda69cab1
Codechange: Use std::vector for NewGRF class lists.
...
(cherry picked from commit d61251a607b9b3f62023cc9dac3cb7bbe8c5ba19)
2023-02-11 00:30:40 +00:00
Jonathan G Rennison
43d58ce6c8
GRF: Extend EntityIDMapping/OverrideManagerBase to 16 bit entity IDs
2023-02-11 00:30:40 +00:00
Loïc Guilloux
6b99b6672e
Fix: [Script] ScriptBase::Rand() return value was between -MIN(int32) and MAX(int32) ( #10443 )
...
Also ensure the parameters for ScriptBase::RandRange() and ScriptBase::Chance() are in [0-MAX(uint32)] range
2023-02-10 19:55:59 +01:00
translators
7bd475b86c
Update: Translations from eints
...
english (au): 2 changes by krysclarke
estonian: 107 changes by RM87
romanian: 2 changes by bnegrut
finnish: 8 changes by hpiirai
dutch: 4 changes by Afoklala
portuguese: 2 changes by azulcosta
polish: 2 changes by pAter-exe
2023-02-10 18:48:19 +00:00
glx22
3278f4c7bb
Fix #10280 , 59645c6
: Ignore double-click for unavailable town actions
2023-02-10 19:39:21 +01:00
glx22
d6aa526b69
Fix #10461 , 59645c6
: Properly check for _local_company validity
2023-02-10 19:39:21 +01:00
Jonathan G Rennison
3396411b58
Fix 05ec32f5
: Savegame load check of DATE chunk
2023-02-10 18:16:00 +00:00
Jonathan G Rennison
483e3172af
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/core/strong_typedef_type.hpp
# src/gfx.cpp
# src/group_cmd.cpp
# src/industry_cmd.cpp
# src/map_func.h
# src/newgrf_debug_gui.cpp
# src/order_cmd.cpp
# src/pathfinder/follow_track.hpp
# src/rail_cmd.cpp
# src/road_cmd.cpp
# src/road_gui.cpp
# src/saveload/saveload.cpp
# src/screenshot.cpp
# src/smallmap_gui.cpp
# src/station_cmd.cpp
# src/strings.cpp
# src/tile_type.h
# src/timetable_gui.cpp
# src/town_cmd.cpp
# src/train_cmd.cpp
# src/viewport.cpp
2023-02-10 17:19:35 +00:00
Jonathan G Rennison
05ec32f577
Run water flooding at constant speed at day lengths >= 4
...
See: #482
2023-02-09 21:39:04 +00:00