PeterN
acd7d3c913
Codechange: Rename *Railtype* to *RailType* for consistency. ( #11287 )
2023-09-11 08:55:12 +00:00
Michael Lutz
5cc623cb3c
Add: [NewGRF] Inspection window for airports.
...
As as the station window combines all station types, accessing the
debug view is via the parent of the airport tile only.
(cherry picked from commit a6f2f3c042 )
2023-09-10 20:50:57 +01:00
Michael Lutz
a6f2f3c042
Add: [NewGRF] Inspection window for airports.
...
As as the station window combines all station types, accessing the
debug view is via the parent of the airport tile only.
2023-09-10 19:38:18 +02:00
Jonathan G Rennison
f6eadf19c6
Replace vehicle tile hash
...
Use robin hood hash of TileIndex
Retain linked list of vehicles on the same tile
2023-09-10 16:19:19 +01:00
Tyler Trahan
77173a6a10
Codechange: Move date consts and functions to CalendarTime and TimerGameCalendar classes
2023-09-10 08:40:25 -04:00
Tyler Trahan
fca2b37726
Codechange: Move Ticks into their own class
2023-09-10 08:40:25 -04: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
mrmbernardi
a5c8365aa4
Feature: Setting to disallow level crossings with competitors ( #10755 )
2023-09-02 12:46:24 +02:00
Jonathan G Rennison
a0e3885acc
Add airport tile variables to get airport type local ID and layout
2023-08-26 15:01:10 +01:00
Jonathan G Rennison
e72744cc77
Debug: Show airport type/layout in debug window
2023-08-26 14:11:54 +01:00
Jonathan G Rennison
547c00b465
Settings: Only write out config on setting change for persistent changes
2023-08-24 17:27:47 +01:00
Jonathan G Rennison
1eb1b0ffcb
Debug: Show cargo packet info if cargo is reserved
2023-08-23 21:29:01 +01:00
Jonathan G Rennison
b0538a00e0
Add setting for whether to allow converting town road to non-house types
...
See: 51e22617
2023-08-20 17:53:08 +01:00
Loïc Guilloux
8c9ecde964
Change: Remove autosave from settings window ( #11218 )
...
It is broken since 4f4810d and it's also in game options.
2023-08-20 14:33:02 +00:00
Jonathan G Rennison
19835b51ee
Move StationCargoList and FlowStatMap out of GoodsEntry struct
...
Move them into a new GoodsEntryData struct referenced
using a std::unique_ptr from GoodsEntry.
The unique_ptr may be nullptr if the cargo list and flow stat map
are both empty (this is the case for unused cargoes).
This reduces GoodsEntry from 128 to 24 bytes,
and Station from 8680 to 2024 bytes,
(on Linux x86_64).
2023-08-19 21:24:29 +01:00
Jonathan G Rennison
c7712bbd20
Debug: Shpw station GoodsEntry info in station debug window
2023-08-18 23:13:30 +01:00
Jonathan G Rennison
2ae4e5bdc1
Change road vehicle path cache to be optional and use ring buffers
...
Show path cache in debug window
2023-08-16 15:17:56 +01:00
Patric Stout
299570b2c1
Codechange: make TimerGameCalendar Date and Year types strongly typed ( #10761 )
2023-08-12 18:14:21 +00:00
Jonathan G Rennison
8a14d8c246
Add setting to also limit acceleration when using realistic braking
2023-08-09 00:16:28 +01:00
Tyler Trahan
748ff13a6d
Change: Enable "Forbid 90 degree turns" setting by default
...
(cherry picked from commit 4decd2aa48 )
2023-07-31 18:22:58 +01:00
Tyler Trahan
9876c861e4
Remove: Unused ship pathfinder invalidation setting callback
2023-07-30 18:21:13 -04:00
Tyler Trahan
4decd2aa48
Change: Enable "Forbid 90 degree turns" setting by default
2023-07-30 18:21:13 -04:00
Daniel Hill
924b2ab9ec
Add an optional "(City)" in Viewport labels
2023-07-30 22:06:51 +01:00
Jonathan G Rennison
4c88256183
De-duplicate string IDs used for viewport town labels
2023-07-30 21:47:03 +01:00
Jonathan G Rennison
ebcf8b336c
Add SET_COLOUR string code
2023-07-30 21:47:03 +01:00
Tyler Trahan
f57296a033
Change: Only show platform stopping location in orders when other than default ( #11102 )
2023-07-29 17:59:02 -04:00
Henry Wilson
a9c65a69d0
Feature: Add config option to set default company secondary colour for new games
...
This does duplicate translation strings for the colours
2023-07-26 16:22:30 +02:00
MasonGulu
0be27778af
Add: alternative setting for right-click close window option to exclude pinned windows ( #10204 )
2023-07-19 23:24:22 +02:00
Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
2023-07-19 19:30:14 +02:00
Patric Stout
4f4810dc28
Fix: store autosave settings under the new names
2023-07-19 13:17:50 +02:00
Jonathan G Rennison
8af0dc223c
Debug: Improve display of rail/road/tram type labels
...
Click to show individual compatible/powered types
2023-07-18 22:54:55 +01:00
Jonathan G Rennison
11bf8e22d7
Add setting to show order number in vehicle view window
2023-07-17 19:02:01 +01:00
Rubidium
a184e7f793
Fix #11137 : assertion failure due to interpreting string as number
2023-07-15 06:33:12 +02:00
rubidium42
9f6fec01cd
Codechange: rename cargo aging days to periods, as they are not really days ( #11112 )
2023-07-12 13:20:02 -04:00
Jonathan G Rennison
c6c69fa3da
Add setting for long-term autosaves
...
A second set of autosaves for whenever the main set wraps around to 0
2023-07-09 10:02:57 +01:00
Jonathan G Rennison
126b31a744
Improve colouring of restricted signal posts with original TTD graphics
2023-07-08 19:12:39 +01:00
RoqueDeicide
c57bfa479a
[Feature] Added waypoint viewport tooltips.
2023-07-06 14:53:09 +04:00
Jonathan G Rennison
3e03cebad1
Simplify industry_tooltip_show_stockpiled setting
...
See: #564
2023-07-04 23:50:53 +01:00
RoqueDeicide
84e5aba1d7
[Change] Reworked stockpile settings into 1 dropdown.
2023-07-04 11:11:59 +04:00
RoqueDeicide
733f53dc9a
Merge branch 'tooltip_extension' into jgrpp
2023-07-03 19:59:29 +04:00
Jonathan G Rennison
ead18b2af2
Merge branch 'master' into jgrpp
...
# Conflicts:
# CMakeLists.txt
# src/3rdparty/md5/md5.h
# src/3rdparty/squirrel/squirrel/squtils.h
# src/animated_tile.cpp
# src/console_func.h
# src/core/CMakeLists.txt
# src/core/container_func.hpp
# src/core/smallstack_type.hpp
# src/crashlog.cpp
# src/crashlog.h
# src/debug.h
# src/economy.cpp
# src/gamelog.cpp
# src/industry_gui.cpp
# src/lang/catalan.txt
# src/misc_gui.cpp
# src/network/network_content.h
# src/newgrf.cpp
# src/newgrf.h
# src/newgrf_config.cpp
# src/newgrf_config.h
# src/newgrf_gui.cpp
# src/os/unix/font_unix.cpp
# src/os/windows/crashlog_win.cpp
# src/rail_cmd.cpp
# src/saveload/animated_tile_sl.cpp
# src/script/api/script_tilelist.cpp
# src/settings.cpp
# src/settingsgen/settingsgen.cpp
# src/sl/oldloader_sl.cpp
# src/station.cpp
# src/station_cmd.cpp
# src/stdafx.h
# src/strgen/strgen.cpp
# src/strgen/strgen_base.cpp
# src/table/settings/gui_settings.ini
# src/train_gui.cpp
# src/vehicle.cpp
# src/vehicle_base.h
# src/vehicle_cmd.cpp
# src/vehicle_gui_base.h
# src/viewport_sprite_sorter.h
2023-07-02 12:02:36 +01:00
RoqueDeicide
5af7be6d17
[Feature] Added station viewport tooltips.
2023-07-01 22:59:00 +04:00
RoqueDeicide
1071235aee
[Feature] Added depot viewport tooltips.
2023-07-01 22:58:24 +04:00
Jonathan G Rennison
8fea927ed1
Add setting for whether to shade height in viewport map mode
...
See: #550
2023-07-01 12:03:36 +01:00
Jonathan G Rennison
99b883298e
Add help text for the various viewport map settings
2023-07-01 11:22:18 +01:00
Jonathan G Rennison
05be624294
Remove gui.viewport_map_scan_surroundings setting, now always enabled
2023-07-01 11:00:59 +01:00
Jonathan G Rennison
d09b504bc5
Merge branch 'master' into jgrpp
...
# Conflicts:
# .github/workflows/ci-build.yml
# .github/workflows/release-linux.yml
# .github/workflows/release-macos.yml
# .github/workflows/release-source.yml
# .github/workflows/release.yml
# CMakeLists.txt
# COMPILING.md
# src/ai/ai_core.cpp
# src/ai/ai_gui.cpp
# src/bridge_gui.cpp
# src/company_gui.cpp
# src/console_cmds.cpp
# src/core/CMakeLists.txt
# src/core/smallmap_type.hpp
# src/disaster_vehicle.h
# src/effectvehicle_base.h
# src/fontcache.cpp
# src/game/game_core.cpp
# src/game/game_gui.cpp
# src/gamelog.cpp
# src/gamelog_internal.h
# src/group_gui.cpp
# src/linkgraph/linkgraph.h
# src/misc.cpp
# src/network/core/config.h
# src/network/core/udp.cpp
# src/network/network_chat_gui.cpp
# src/network/network_content_gui.cpp
# src/network/network_gui.cpp
# src/newgrf.cpp
# src/newgrf_gui.cpp
# src/newgrf_profiling.cpp
# src/newgrf_profiling.h
# src/object_gui.cpp
# src/openttd.cpp
# src/openttd.h
# src/order_gui.cpp
# src/os/windows/font_win32.cpp
# src/rail_gui.cpp
# src/road.cpp
# src/road_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.h
# src/script/api/script_controller.cpp
# src/script/api/script_roadtypelist.cpp
# src/script/script_config.cpp
# src/script/script_config.hpp
# src/script/script_instance.cpp
# src/script/script_scanner.cpp
# src/script/squirrel.cpp
# src/script/squirrel_helper.hpp
# src/settings_gui.cpp
# src/settings_internal.h
# src/settings_type.h
# src/table/settings/network_private_settings.ini
# src/timetable_gui.cpp
# src/vehicle.cpp
# src/vehicle_base.h
# src/window_gui.h
2023-07-01 02:42:51 +01:00
RoqueDeicide
33ee78f9ac
[Feature] Extended functionality of industry viewport tooltips.
...
Added ability to turn them off or to show any combination of the following: name, required, stockpiled or produced cargoes.
2023-06-30 15:55:12 +04:00
RoqueDeicide
8eea01717f
[Feature] A setting to allow town name tile tooltips to always or never be displayed.
2023-06-28 16:11:51 +04:00
RoqueDeicide
d6041744ca
[Change] Moved tooltip-related settings to a dedicated category.
2023-06-28 15:14:29 +04:00