Jonathan G Rennison
f3116eedcf
Support 64 bit values in the give money and change bank balance commands
...
See: #535
2023-06-06 22:09:01 +01:00
Jonathan G Rennison
3151751eda
Allow using the money cheat with values greater than 32 bits
...
See: #536
2023-06-06 21:49:30 +01:00
Jonathan G Rennison
d03465db59
Set default values for DoCommandPEx optional parameters
2023-06-06 21:48:24 +01:00
Jonathan G Rennison
bc00753996
NewGRF stations: Remove extended version of varuiable 68
2023-06-06 21:35:39 +01:00
Jonathan G Rennison
1d8df99c83
Fix upstream savegame load for versions 311 and later
2023-06-06 21:09:06 +01:00
Jonathan G Rennison
57762ce9f6
Enable upstream load for build object limit settings
2023-06-06 21:08:23 +01:00
Jonathan G Rennison
fa0771979f
Add upstream savegame load support for versions 315
2023-06-06 20:18:58 +01:00
Jonathan G Rennison
929dd46fcf
Add upstream savegame load support for versions 313 and 314
2023-06-06 19:48:59 +01:00
Michael Lutz
e5654a0414
Codechange: Use a dedicated variable for disaster vehicle action state. ( #10798 )
...
(cherry picked from commit 72c7536325
)
2023-06-06 19:59:10 +01:00
Jonathan G Rennison
2c91866831
Adjust spacing of buttons in cargo payments rate graph
2023-06-06 19:32:16 +01:00
Jonathan G Rennison
2a5a9c2f9d
Add by cargo mode to company delivered cargo history graph
2023-06-06 19:31:59 +01:00
Jonathan G Rennison
f09dfc79bd
Add cargo type filters to company delivered cargo window
...
Adapted from Citymania
2023-06-06 18:19:19 +01:00
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
.
2023-06-05 22:05:51 +01:00
Jonathan G Rennison
bc07331056
Remove src/3rdparty/optional
2023-06-05 21:26:41 +01:00
PeterN
ab83725d73
Add: NewGRF string code "9A 21" to display force from textstack. ( #10782 )
...
(cherry picked from commit 61516627ad
)
2023-06-05 21:07:55 +01:00
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
)
2023-06-05 20:47:58 +01:00
Jonathan G Rennison
5c2f9dffe6
Fix compilation error in newgrf_profile console command on some platforms
2023-06-05 20:47:58 +01:00
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
)
2023-06-05 20:34:54 +01:00
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
)
2023-06-05 20:31:41 +01:00
Jonathan G Rennison
d481d382cb
Fix missing include in company_base.h
2023-06-05 20:14:52 +01:00
Jonathan G Rennison
7cce9f934d
Fix strncasecmp related compilation errors on MSVC
2023-06-05 20:08:09 +01:00
Jonathan G Rennison
ffb4548f1b
Fix std::optional related compilation errors on some platforms
2023-06-05 20:04:13 +01:00
Jonathan G Rennison
3d382fe531
Debug: Fix compilation error when using RANDOM_DEBUG
2023-06-05 20:02:34 +01:00
Jonathan G Rennison
b84d1bcee4
Cheats window: Fix inflation factor arrow buttons
...
See: #533 , #534
2023-06-05 19:51:35 +01:00
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
2023-06-05 19:37:33 +01:00
Jonathan G Rennison
665a4ca55b
Add Window method to change window class
...
Use in BuildRoadStationWindow
2023-06-05 19:20:46 +01:00
Jonathan G Rennison
6215e326fd
Add constants for toolbar help menu items
2023-06-05 19:20:46 +01:00
Jonathan G Rennison
0e94dca563
Fix GetLinkGraphJobDesc for null saveload conv settings
2023-06-04 21:38:08 +01:00
Jonathan G Rennison
ec9766e691
Fix ai_developer_tools not being read before scanning for scripts
...
See: #528
2023-06-04 19:33:54 +01:00
Jonathan G Rennison
f9c9f53882
Fix town 0 not being included in public roads network
...
See: #530
2023-06-04 19:01:19 +01:00
Jonathan G Rennison
3effb8931c
Add: [Script] GSAsyncMode to set async mode of gamescript commands ( #10913 )
...
In asynchronous mode, don't wait for result of executed command,
just fire-and-forget, and return estimated cost/result
2023-06-04 11:15:35 +02:00
Patric Stout
5821194ad1
Add: [Linux] change default scroll mode to non-mouse-lock ( #10920 )
...
Wayland doesn't support mouse warping, X11 only for native
systems (so not for remote desktop, WSLg, etc), and emscripten
neither without complications. All these cannot offer a
mouse-lock.
2023-06-04 00:10:21 +00:00
Patric Stout
0d840b4570
Codechange: remove queue_wrap / last_position from mouse movement
...
No backend uses it anymore, so also no longer any need to support
it.
2023-06-04 00:40:56 +02:00
Patric Stout
e83f244750
Codechange: simplify UpdateCursorPositionRelative
...
The function is only called with fix_at=true, so don't support
the other cases.
2023-06-04 00:40:56 +02:00
Patric Stout
a969a78f81
Fix: [SDL] unify the way X11 and Wayland handle mouse events
...
Basically, we drop RelativeMode completely, and use the same trick
as used by the Windows driver: read all motion events till the last
one, and use that as value.
2023-06-04 00:40:56 +02:00
PeterN
8a2d550904
Codechange: Use std::reverse instead of custom implementation. ( #10918 )
2023-06-03 23:25:01 +01:00
Jonathan G Rennison
a2c0e6aa18
Fix #10831 : Level crossing parts left barred after crossing tile removal ( #10874 )
2023-06-03 23:04:24 +02:00
Jonathan G Rennison
dc32b0533c
Viewport: Fix fixed vehicle route overlays not being marked dirty on remove
2023-06-03 20:29:55 +01:00
Patric Stout
cd751a598a
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.
2023-06-03 19:09:02 +00:00
Patric Stout
21adfa7567
Fix: track "memory installed" for surveys less precisely ( #10910 )
...
It turns out, for Windows and Linux having the exact memory allows
for easy tracing of an individual. That is exactly against the idea
of the survey. And honestly, we don't need this precision.
2023-06-03 19:07:56 +00:00
Jonathan G Rennison
0a8a9abe28
Window: Cache which window classes are currently present
2023-06-03 19:53:47 +01:00
translators
7d6aff3a34
Update: Translations from eints
...
french: 16 changes by ottdfevr
2023-06-03 18:42:31 +00:00
Jonathan G Rennison
9fa6fb7438
Pay company loan interest before accumulating quarterly statistics
...
See: #524
2023-06-03 19:27:22 +01:00
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
2023-06-03 19:16:57 +01:00
Rubidium
d68b5c9162
Codechange: replace buffer + strecpy with std::string for getting clipboard contents
2023-06-03 20:14:33 +02:00
Rubidium
35f7f7e8dc
Codechange: use std::string for executing the console aliases
2023-06-03 18:15:55 +02:00
Peter Nelson
2e62682f73
Codechange: Close dropdowns by class instead of id.
2023-06-03 14:17:05 +01:00
Peter Nelson
2511649938
Codechange: Use window parent association for dropdowns.
...
This replaces the separate window class and number properties, and
allows the window system to close dropdowns automatically.
2023-06-03 14:17:05 +01:00
Peter Nelson
dec7ff6b0c
Fix: Make dropdowns self-close when losing focus.
2023-06-03 14:17:05 +01:00
PeterN
a5a3a07005
Fix: GRF Parameters not displayed due to scope issue. ( #10911 )
...
Move params so it is still in scope when the text is actually drawn.
2023-06-03 11:07:59 +00:00