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
7119550aa7
Documentation: Adjust low level changes document
2023-06-03 21:39:04 +01: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
Jonathan G Rennison
0a8a9abe28
Window: Cache which window classes are currently present
2023-06-03 19:53:47 +01: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
Jonathan G Rennison
69c118a2cb
Documentation: Update info on road stop and object extended byte format
2023-06-03 11:07:13 +01:00
Jonathan G Rennison
36fadb5424
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/base_station_base.h
# src/newgrf.cpp
# src/newgrf_class.h
# src/newgrf_class_func.h
# src/newgrf_commons.cpp
# src/newgrf_commons.h
# src/newgrf_roadstop.cpp
# src/newgrf_roadstop.h
# src/newgrf_station.cpp
# src/saveload/newgrf_sl.cpp
# src/saveload/saveload.h
# src/saveload/station_sl.cpp
2023-06-03 11:07:01 +01:00
Jonathan G Rennison
fc80a93672
Fix object town variables when no town is present
2023-06-02 22:19:54 +01:00
Jonathan G Rennison
3d4133cadb
Debug: Fix debug window parent scope button with missing town
2023-06-02 22:18:40 +01:00
Jonathan G Rennison
5615cee503
Show town count in town directory window
2023-06-02 18:47:58 +01:00
Jonathan G Rennison
819b9fcdd9
Include 'perfect' mode in tree placer setting helptext
2023-06-02 18:41:52 +01:00
Rubidium
6eb51666bc
Codechange: use C++ file APIs for writing language files
2023-06-02 11:57:23 +02:00
Rubidium
fa0d865edd
Change: set macOS deployment target to 10.15
2023-06-02 11:57:23 +02:00
PeterN
0b663f709d
Codechange: Sprite mapping for objects doesn't involve cargo types. ( #10905 )
...
Objects have a default sprite group and an optional purchase list sprite
group. There is no need to pretend that these are cargo IDs.
2023-06-02 08:25:13 +00:00
Jonathan G Rennison
cdb3a6288b
Codechange: Remove unused CapacitiesMap typedef from struct Vehicle
2023-06-01 22:48:47 +02:00
Jonathan G Rennison
58c0aac15f
Fix re-opening GRF/script settings windows not closing drop down windows
...
Causing assertion failure on drop down item selection
See: #527
2023-06-01 21:12:16 +01:00
Jonathan G Rennison
e3bd8966fc
Debug: Allow setting parameters for extended vars in debug window
...
Reafctor handling of set parameters
2023-06-01 20:36:00 +01:00
Jonathan G Rennison
a10c5a62c9
Factor out function to get value with broadest digits
2023-06-01 20:36:00 +01:00
Jonathan G Rennison
18a79a35d0
Fix truncation of GetDebugString output string
...
See: #525
2023-06-01 20:36:00 +01:00
Jonathan G Rennison
f7964cb3aa
Add function to get name of extended variable ID
...
Add table for internal variable IDs which aren't mappable externally
2023-06-01 20:36:00 +01:00
Jonathan G Rennison
bdb9a72aa4
NewGRF: Add/extend station variables for station info of nearby tiles
...
In preparation for support of more than 255 stations per GRF
2023-06-01 18:51:51 +01:00
Jonathan G Rennison
1dbbbed9e5
NewGRF: Only extend value of road stops variable 68 if feature tested for
2023-06-01 18:14:23 +01:00
Jonathan G Rennison
5989edab8d
Documentation: Fix table HTML in roadstops doc
2023-06-01 18:12:10 +01:00
Jonathan G Rennison
2450705aa0
Use btree map for tracerestrict GUI drop down list mapping
2023-06-01 17:48:24 +01:00
Jonathan G Rennison
ec6f9478ee
Improve efficiency of station docking tiles check in CheckCaches
2023-06-01 17:41:34 +01:00
Jonathan G Rennison
24ffc5233c
Remove CapacitiesMap typedef
2023-06-01 17:40:24 +01:00
Patric Stout
9eda419f9b
Fix 646a7e62: recalc_time was not scaled properly ( #10901 )
...
This caused "runtime" to underflow or, if you are lucky, hit an
assert in ScaleToMonthly when it hits zero. But mostly underflow.
2023-06-01 12:21:33 +00:00
Jonathan G Rennison
326d0c329c
Remove some unnecessary colour strings
2023-06-01 00:14:37 +01:00
Jonathan G Rennison
40a9f19c20
Implement text filtering in dual pane train build window
2023-05-31 23:50:09 +01:00
Jonathan G Rennison
2ed248a61d
Merge branch 'master' into jgrpp
...
# Conflicts:
# .github/workflows/ci-build.yml
# .github/workflows/release-linux.yml
# src/aircraft_cmd.cpp
# src/airport_gui.cpp
# src/articulated_vehicles.cpp
# src/build_vehicle_gui.cpp
# src/company_gui.cpp
# src/genworld_gui.cpp
# src/gfx_layout.cpp
# src/misc_gui.cpp
# src/newgrf.cpp
# src/newgrf_config.h
# src/newgrf_engine.cpp
# src/news_gui.cpp
# src/order_gui.cpp
# src/roadveh_cmd.cpp
# src/saveload/saveload.h
# src/saveload/vehicle_sl.cpp
# src/ship_cmd.cpp
# src/statusbar_gui.cpp
# src/table/settings/network_private_settings.ini
# src/table/settings/network_settings.ini
# src/toolbar_gui.cpp
# src/train_cmd.cpp
# src/vehicle_gui.cpp
2023-05-31 23:21:38 +01:00
translators
b5b004e518
Update: Translations from eints
...
ukrainian: 117 changes by alextov
2023-05-31 18:42:26 +00:00
Rubidium
f29606fd14
Codechange: use std::string to cache engine/group/vehicle names
2023-05-31 19:31:09 +02:00
Rubidium
d9f8a4c380
Codechange: use std::string GetString variant
2023-05-31 19:31:09 +02:00
Rubidium
324c43eeb2
Codechange: let FiosGetDiskFreeSpace only return disk space and split FiosGetCurrentPath off
2023-05-31 10:56:33 +02:00
Rubidium
f2e704b9a7
Codechange: use std::string for FiosIsRoot
2023-05-31 10:56:33 +02:00
Rubidium
13789d1703
Codechange: use std::string for FiosIsValidFile
2023-05-31 10:56:33 +02:00
PeterN
1ff0dc11d8
Fix: Land info window maximum width was not scaled. ( #10894 )
2023-05-31 08:54:39 +00:00
Jonathan G Rennison
6880cf24a0
Fix crash in template replacement failure news if autorenew succeeds
2023-05-30 23:41:51 +01:00