Commit Graph

55502 Commits

Author SHA1 Message Date
Tyler Trahan
b012d1100c Fix #10334: Store separate newgrf-safe version of date_of_last_service. (#11124)
This value is not changed when the date cheat is used, which caused issues with changing properties based on service date.

Co-authored-by: Peter Nelson <peter1138@openttd.org>
(cherry picked from commit 9a602ff304)
2023-08-08 18:31:29 +01:00
Jonathan G Rennison
5bcc71f2c2 Fix incorrect industry NewGRF text ID mapping
In the case where the lower 16 bits of the internal string ID
was also a valid NewGRF string ID
2023-08-06 01:21:19 +01:00
Jonathan G Rennison
752b0bce47 ScriptList: Defer creation of sorter and values map until first used 2023-08-05 20:03:33 +01:00
Jonathan G Rennison
24a77e5b36 ScriptList: Update iterators when swapping lists
Safe btree iterators store a pointer to the parent container
2023-08-05 19:54:05 +01:00
Jonathan G Rennison
731a79b224 Fix truncation of dump_command_log console command output 2023-08-04 22:20:36 +01:00
Jonathan G Rennison
bdbc631e6c Script: Simplify implementation of ScriptList
Use btrees instead of set/map
Replace bucket mechanism for reverse mapping
Avoid redundant operations
2023-08-03 22:05:26 +01:00
Jonathan G Rennison
b68491f2fe Btree: Add copy operator for safe iterators 2023-08-03 20:53:33 +01:00
Jonathan G Rennison
a248495ee3 Version: Committing version data for tag: jgrpp-0.54.5 2023-08-02 20:29:07 +01:00
Jonathan G Rennison
3a07f92474 CMake: Fix findversion with git when build dir is not inside source dir 2023-08-02 20:28:51 +01:00
Jonathan G Rennison
38c57044ea Add debug special console command 2023-08-01 21:09:51 +01:00
Jonathan G Rennison
bab06f1bb4 CMake: Add option to explicitly disable LTO 2023-08-01 20:51:15 +01:00
Jonathan G Rennison
cc9daf4128 Use btree set in console list dirs 2023-08-01 19:11:13 +01:00
Jonathan G Rennison
4202afc0bc Use btree set for town names list 2023-08-01 19:09:30 +01:00
Jonathan G Rennison
2313679ee7 Simplify town name duplicate check in VerifyTownName 2023-08-01 19:08:30 +01:00
Jonathan G Rennison
665d6bf7f2 Fix duplicate town names when using the many random towns function
See: #583
2023-08-01 19:06:41 +01:00
Jonathan G Rennison
2ed98b3b9d Saveload: Add support for upstream savegame version 316 2023-08-01 18:55:30 +01:00
Jonathan G Rennison
f4d237e022 Remove use of fmt from squtils.h
Fixes link warning on MinGW
2023-08-01 00:57:38 +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
Loïc Guilloux
2ddc5d9cd6 Fix #11067, ed83c4b: Don't start competitors during map generation (#11069)
(cherry picked from commit a979d9cdda)
2023-07-31 18:21:45 +01:00
Jonathan G Rennison
c79dd3656f conv-lang.pl: Support N: prefixes when fixing STRINGN codes 2023-07-30 23:09:24 +01:00
Daniel Hill
924b2ab9ec Add an optional "(City)" in Viewport labels 2023-07-30 22:06:51 +01:00
Jonathan G Rennison
4d2db01a0f Fix maybe uninitialised warning in DrawDeparturesListItems 2023-07-30 22:03:21 +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
5f385a5573 De-duplicate string IDs used for station rating tooltips 2023-07-30 21:47:03 +01:00
Jonathan G Rennison
7744ccf3f3 Extra strings: Move "JUST" strings to a no-translate section 2023-07-30 21:47:03 +01:00
Jonathan G Rennison
eb03369a21 Extra strings: Add no-translate tag 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
Jonathan G Rennison
ccbf789ea0 Link graph: Also change start_date_ticks when using date cheat
See: #580
2023-07-30 11:32:46 +01:00
Jonathan G Rennison
c263d941da Clamp runtime to be non-zero in FlowMapper::Run 2023-07-30 11:04:42 +01:00
Jonathan G Rennison
ee6481aadc Utils: Fix STRINGN codes in conv-lang.pl 2023-07-26 21:26:12 +01:00
Jonathan G Rennison
e0c59aaa77 Merge branch 'pr-576' into jgrpp 2023-07-26 21:22:06 +01:00
pvillaverde
6fdeffb76a 🌐 Fix wrong translation 2023-07-26 16:26:42 +02:00
TELK
dcc52f7696 Update: Korean translation up to d7ef141 2023-07-24 21:56:06 +09:00
pvillaverde
1a37737316 🌐 Update Galician Translations up to 0.54.4 2023-07-24 12:00:58 +02:00
Jonathan G Rennison
4f875012b6 Do not unnecessarily extend train reservations when passing signal
When the signal is a next-only or non-aspect-incrementing type, and
its maximum lookahead is not beyond the current end of the reservation
2023-07-23 18:39:57 +01:00
Jonathan G Rennison
d7ef1416a7 Suppress compiler warnings from fmt library
See: #570
2023-07-20 18:49:38 +01:00
Jonathan G Rennison
508f871c5f Use core/format.hpp for fmt includes 2023-07-20 16:34:59 +01:00
Jonathan G Rennison
40faaa46f4 Scroll to class when using picker tool on object
See: #572
2023-07-20 10:43:10 +01:00
Jonathan G Rennison
c8ca16e43d Fix crash using picker tool on rail/road stations when no GRF classes defined
See: #575
2023-07-20 10:04:18 +01:00
Jonathan G Rennison
73b9028bcc Merge PR #574 into jgrpp 2023-07-19 18:57:44 +01:00
JakMel
83575b6a3e Update: Czech translation, fixes to commit 8f887b7 2023-07-19 19:43:49 +02:00
Jonathan G Rennison
ee7d3d5b06 Handle invalid road type in road vehicle variable 4A 2023-07-18 22:54:55 +01:00
Jonathan G Rennison
7c08376861 Do not allow mixing road/tram types in powered road type list (property 0F) 2023-07-18 22:54:55 +01: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
8b5685eb56 Debug: Add debug command to dump GRF cargo tables 2023-07-18 22:54:55 +01:00
JakMel
8f887b7487 Update: Czech translation up to 0.54.4. 2023-07-18 23:22:47 +02:00
Jonathan G Rennison
0538ead472 Don't spread temperate trees uphill if above lower snow line in arctic 2023-07-17 23:20:22 +01:00
Jonathan G Rennison
11bf8e22d7 Add setting to show order number in vehicle view window 2023-07-17 19:02:01 +01:00
Jonathan G Rennison
3ae2ae8184 Show GRF ID in GetFileByGRFID assertion failure message 2023-07-17 18:19:05 +01:00
Jonathan G Rennison
5ce863d165 Show distance information in linkgraph tooltip when ctrl pressed 2023-07-15 20:22:28 +01:00