Commit Graph

57062 Commits

Author SHA1 Message Date
Loïc Guilloux
f7bd70baec
Fix #11748: Incorrect clamping of negative service interval values (#11749) 2024-01-10 16:23:36 +01:00
Jonathan G Rennison
39a0e29f90 Move patch label array out of WaterRegion
Use unique_ptr, with no storage for trivial cases
2024-01-10 01:47:24 +00:00
Jonathan G Rennison
fdb7d7b930 Move x, y, out of WaterRegion, use a reference wrapper type class 2024-01-10 01:27:16 +00:00
Jonathan G Rennison
985bd99c44 Debug: Add debug zoning overlays for water regions 2024-01-10 01:14:15 +00:00
Jonathan G Rennison
936d636cdd No longer save/load water region invalidation states
Move InitializeWaterRegions to AllocateMap
No longer ForceUpdate in InitializeWaterRegions
2024-01-10 00:51:44 +00:00
Jonathan G Rennison
86b046cd26
Fix: Incorrect assertion in GetTileIndexFromLocalCoordinate (#11747) 2024-01-10 00:20:34 +00:00
Jonathan G Rennison
9206fa1fce Use shift/mask to get water region ID 2024-01-09 23:31:50 +00:00
Jonathan G Rennison
5dd67651a3 Replace tile area in WaterRegion with x, y
Use non-virtual tile iterator
2024-01-09 22:48:04 +00:00
Peter Nelson
8f2266f0ed
Codechange: Use range-for when validating and finalising industries. (#11744) 2024-01-09 22:36:09 +00:00
Jonathan G Rennison
c2e1dfcfc1 Adjust various water region types 2024-01-09 20:55:27 +00:00
Jonathan G Rennison
09eefd6e95 Cleanup: Remove unused constant YAPF_SHIP_PATH_CACHE_LENGTH 2024-01-09 20:58:51 +01:00
Jonathan G Rennison
c1b421c0c3 Fix: Clear one way state when removing road from road+tram tile 2024-01-09 20:57:53 +01:00
Jonathan G Rennison
45205a4284 Clear ship path cache when performing collision avoidance 2024-01-09 19:57:30 +00:00
Jonathan G Rennison
ced7bc54b7 Debug: Show ship path cache in debug window 2024-01-09 18:56:30 +00:00
Peter Nelson
97e2bc612c Codechange: Rename and move SpriteGroup-specific cargo types into a namespace.
These 'cargo types' have special defined uses and must not be used elsewhere. This makes it clearer that they are special.
2024-01-09 18:56:05 +00:00
Peter Nelson
400ae65ff2 Codechange: Redefine some cargo-related values in terms of CargoID instead of CargoType.
Values used as special filter types are now defined as offsets from NUM_CARGO instead of confusingly reusing CARGO_NO_REFIT/CARGO_AUTO_REFIT types.
2024-01-09 18:56:05 +00:00
Peter Nelson
952d111b94 Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO.
INVALID_CARGO is a CargoID and should be used for most purposes in game.
CT_INVALID is a CargoType used for defining default properties.
2024-01-09 18:56:05 +00:00
translators
4fd986bd07 Update: Translations from eints
english (au): 7 changes by krysclarke
english (us): 7 changes by 2TallTyler
chinese (simplified): 6 changes by WenSimEHRP
serbian: 39 changes by DoLoop216
russian: 3 changes by Ln-Wolf
finnish: 4 changes by hpiirai
portuguese: 10 changes by azulcosta
polish: 34 changes by pAter-exe
2024-01-09 18:38:30 +00:00
Jonathan G Rennison
914b92b21f Merge branch 'master' into jgrpp
Bump savegame for water regions for ship pathfinder
Use ring_buffer for ShipPathCache
2024-01-09 18:36:47 +00:00
Jonathan G Rennison
14db9b2854 Fix loading of pre-selected AIs from config file 2024-01-09 17:48:44 +00:00
Jonathan G Rennison
6492cec113 Merge branch 'master' into jgrpp 2024-01-09 17:33:32 +00:00
Jonathan G Rennison
6eaa3cf7f8 Removing road from combined road/tram tile should clear one way state 2024-01-09 08:59:44 +00:00
Jonathan G Rennison
36776248b9 Do not get one way states when building road stops on tram-only tiles 2024-01-09 08:48:26 +00:00
Jonathan G Rennison
a90cbd837e Do not try to display one way markings for tram-only road stops 2024-01-09 08:47:51 +00:00
Jonathan G Rennison
c488dae9c8 Fix strings for amount of rivers setting in settings window 2024-01-09 08:42:02 +00:00
Loïc Guilloux
c86d918921
Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
Jonathan G Rennison
e0361791fd Used curved instead of square circular area for mapgen water desert removal 2024-01-09 08:35:07 +00:00
Jonathan G Rennison
69f7c3e63b Add function to iterate (curved) circular tile area 2024-01-09 08:35:06 +00:00
Jonathan G Rennison
16b840d86e Increase DateTicks to 64 bits, fix overflow after year 79455 2024-01-09 00:13:28 +00:00
Jonathan G Rennison
bd35b0c47c Debug: Log more info in GfxBlitter sprite dimension assert failures 2024-01-08 22:22:11 +00:00
Jonathan G Rennison
5e2ac22ef5 Assert: Add more assert macros for using a simple string as the extra text 2024-01-08 22:22:11 +00:00
Kuhnovic
f1e999ec59
Feature: Region-based pathfinder for ships (#10543) 2024-01-08 20:29:05 +01:00
translators
9a7c4dda52 Update: Translations from eints
english (au): 3 changes by krysclarke
english (us): 3 changes by 2TallTyler
chinese (simplified): 5 changes by WenSimEHRP
korean: 3 changes by telk5093
russian: 3 changes by Ln-Wolf
finnish: 3 changes by hpiirai
french: 5 changes by Lishouuu
2024-01-08 18:40:07 +00:00
Tyler Trahan
56dd8497e0
Fix: Use consistent wording on waypoint button tooltip (#11700) 2024-01-07 21:11:25 +00:00
Kaspars Putniņš
cfc14a57e1
Add: Latvian Lats currency (#11691) 2024-01-07 16:03:38 -05:00
Jonathan G Rennison
4b48d3b5fe
Fix: String gender scan with SCC_INDUSTRY_NAME (#11697) 2024-01-07 15:48:47 -05:00
Tyler Trahan
948651d086
Fix: Use consistent wording for lorry stations (#11699) 2024-01-07 15:45:35 -05:00
Jonathan G Rennison
61db988a4a Fix time since pickup values in station rating tooltips with day length
See: #625
2024-01-07 20:16:26 +00:00
translators
6bf7a86a04 Update: Translations from eints
english (us): 2 changes by 2TallTyler
korean: 2 changes by telk5093
danish: 2 changes by bscargo
2024-01-07 18:38:14 +00:00
Rubidium
6fa02955cd Cleanup: remove typedefs for non _t (u)int types and WChar
(cherry picked from commit 461b4b8861)
2024-01-07 17:20:41 +00:00
Jonathan G Rennison
97e6f3062e Adding of _t to (u)int types, and WChar to char32_t
See: eaae0bb5e
2024-01-07 17:20:41 +00:00
Jonathan G Rennison
55d78a23be Merge branch 'master' into jgrpp
# Conflicts:
#	src/3rdparty/squirrel/include/squirrel.h
#	src/blitter/32bpp_sse_func.hpp
#	src/bridge_map.h
#	src/clear_map.h
#	src/company_manager_face.h
#	src/console_func.h
#	src/core/bitmath_func.hpp
#	src/core/endian_func.hpp
#	src/core/random_func.hpp
#	src/depot_map.h
#	src/elrail_func.h
#	src/fontcache.h
#	src/industry_map.h
#	src/map_func.h
#	src/newgrf_spritegroup.h
#	src/object_map.h
#	src/rail.h
#	src/rail_map.h
#	src/road_func.h
#	src/road_map.h
#	src/saveload/saveload.h
#	src/saveload/saveload_error.hpp
#	src/settings_gui.cpp
#	src/sl/oldloader.h
#	src/sprite.h
#	src/spritecache.h
#	src/station_func.h
#	src/station_map.h
#	src/story_base.h
#	src/strings_func.h
#	src/tile_cmd.h
#	src/tile_map.h
#	src/tile_type.h
#	src/town.h
#	src/town_map.h
#	src/tree_map.h
#	src/tunnel_map.h
#	src/tunnelbridge_map.h
#	src/vehicle_func.h
#	src/viewport_func.h
#	src/void_map.h
#	src/water.h
#	src/water_map.h
#	src/widget_type.h
2024-01-07 15:00:16 +00:00
Tyler Trahan
1e56bd1e5a
Change: Reorganize Settings menu items (#11683) 2024-01-07 08:44:50 -05:00
Jonathan G Rennison
8271813a47 Timetable window: Use checked items for extra/leave early dropdown 2024-01-06 19:22:09 +00:00
Jonathan G Rennison
592c038e42 Add setting for whether to show rail polyline tool 2024-01-06 19:10:43 +00:00
translators
0a8c0d62ee Update: Translations from eints
chinese (simplified): 103 changes by WenSimEHRP
latvian: 2 changes by lexuslatvia
2024-01-06 18:39:19 +00:00
Jonathan G Rennison
f24388c0b2 Fix string gender scan with SCC_INDUSTRY_NAME 2024-01-06 17:57:44 +00:00
Jonathan G Rennison
dcd71f5ab8 Strings: Exit early when scanning for gender data 2024-01-06 17:54:42 +00:00
Jonathan G Rennison
1100e83192 Date/time: Ensure clock-face conversions correct for negative TickMinutes 2024-01-06 17:37:09 +00:00
Jonathan G Rennison
9718c51ef4 Survey: Add clang and zstd 2024-01-06 17:37:09 +00:00