Commit Graph

51442 Commits

Author SHA1 Message Date
rubidium42
057e858d32 Fix #9353: [Script] Garbage collecting on priority queues could crash the game
(cherry picked from commit 71f3c35288)
2021-10-08 18:11:02 +01:00
Loïc Guilloux
d46c764d60 Fix 4079c47: Missed a file when removing generated .sq files from the repo (#9350)
(cherry picked from commit 16ebf7861f)
2021-10-08 18:11:02 +01:00
Loïc Guilloux
0f05fc8573 Fix: [Script] doxygen_filter is very strict about DOXYGEN_API usage (#9351)
(cherry picked from commit ee5f23382d)
2021-10-08 18:11:02 +01:00
Patric Stout
0a7a4e06ad Add: adhere the autosave_on_exit setting for Null videodriver (#9343)
This is especially useful for automated-testing, to make a save
when the game quits while using "-vnull:ticks=N".

(cherry picked from commit 37ae6b8ae3)
2021-10-08 18:11:02 +01:00
Patric Stout
364ce76d51 Change: allow pause/unpause console command in single player too (#9342)
(cherry picked from commit 849a10520c)
2021-10-08 18:11:02 +01:00
Patric Stout
563884105f Change: by default, make "unload all" leave stations empty (#9301)
(cherry picked from commit 7648483364)
2021-10-08 18:11:02 +01:00
Patric Stout
3411203e5d Fix: compatible NewGRFs in crash-log reported wrong md5 (#9340)
The text suggests it reports the original md5, but it does in fact
report the replaced md5. Now it reports both.

(cherry picked from commit f997eb6ca4)
2021-10-08 18:11:02 +01:00
rubidium42
9299a29a52 Fix: limit heightmap sizes to something reasonable to prevent crafted heightmaps to OOM-crash the game
(cherry picked from commit 97c461d1e7)
2021-10-08 18:11:02 +01:00
Jonathan G Rennison
92fc0f364b Version: Committing version data for tag: jgrpp-0.43.1 2021-10-04 21:38:37 +01:00
Jonathan G Rennison
fe8da3ae3a Fix missing include in header 2021-10-04 21:37:55 +01:00
Loïc Guilloux
07cc7da7fd Revert 7ca1793: Using Trackdir keyed node is not required, Exitdir keyed node still have the correct trackdir (#9576)
(cherry picked from commit 11dece205c)
2021-10-04 21:07:37 +01:00
Jonathan G Rennison
ea9a65edcd Increase size of desync log message ring buffer 2021-10-04 21:01:03 +01:00
Jonathan G Rennison
6f16655e6e Add "special events" log. Add console command, include in crash logs. 2021-10-04 20:54:12 +01:00
Jonathan G Rennison
2e022d5194 Move game events to new event_logs header/cpp files 2021-10-04 20:43:50 +01:00
Jonathan G Rennison
1451aa76ff Add console command to dump vehicle info 2021-10-04 01:02:39 +01:00
Jonathan G Rennison
6b250c203c Add chicken bit to control CheckCaches periodic/post-command flags 2021-10-03 23:58:35 +01:00
Jonathan G Rennison
24fdc8331b Add CheckCaches mode to emit a log/save/screenshot on detected issue 2021-10-03 23:57:27 +01:00
Jonathan G Rennison
1b8bbdaf76 Add chicken bit for CheckCaches call after DoCommandP 2021-10-03 23:03:39 +01:00
Jonathan G Rennison
5ed7aee8d3 Add flags field to CheckCaches for which checks to run
Add header file for CheckCaches
2021-10-03 23:03:39 +01:00
Loïc Guilloux
c408007575 Fix #9548, e5fedcd: [Squirrel] Crash during engine cleanup after reaching memory limit on realloc (#9592)
(cherry picked from commit a53cfeef13)
2021-10-03 21:19:27 +01:00
Loïc Guilloux
ff67f7b311 Fix #9588, 140a96b: [Squirrel] Reaching memory limit during script registration could prevent further script detections (#9589)
Also the memory allocation triggering the limit was never freed.
And if the exception was thrown in a constructor using placement new, the pre-allocated memory was not freed either.

(cherry picked from commit ccd586a736)
2021-10-03 21:19:12 +01:00
Tyler Trahan
cd97ca95f2 Fix: Changing raw industry funding method redraws GUI (#9572)
(cherry picked from commit 4aa63ce8f3)
2021-10-03 21:18:43 +01:00
PeterN
f5561ac212 Fix #9562: Handle case of invalid action2 with zero results. (#9564)
(cherry picked from commit 7e70ead396)
2021-10-03 21:18:16 +01:00
Jonathan G Rennison
c99eaf72b7 Fix #9591: Update station docking tiles upon placing a water object on a docking tile (#9594)
See: https://github.com/OpenTTD/OpenTTD/issues/9591
See: https://github.com/OpenTTD/OpenTTD/pull/9594

Non-extended savegame bump to be applied later

(cherry picked from commit e404d16929)

# Conflicts:
#	src/object_cmd.cpp
#	src/saveload/afterload.cpp
#	src/saveload/saveload.h
2021-10-03 15:06:58 +01:00
Jonathan G Rennison
8f2582e0ff Update help text for check_caches console command 2021-10-03 02:17:52 +01:00
Jonathan G Rennison
d4d54c9b90 Add a chicken bit setting to enable periodic CheckCaches 2021-10-03 01:58:54 +01:00
Jonathan G Rennison
96ea775b24 Avoid undefined behaviour in saveload chunk handlers
Use data() instead of &[0] to avoid issues with empty vectors
2021-10-02 22:43:55 +01:00
Jonathan G Rennison
c47fd30330 Include docking tiles in station debug window 2021-10-02 22:43:55 +01:00
Jonathan G Rennison
2df744db79 OSX: Fix CoreTextFontCache not setting font_height_cache
See: #323
2021-10-02 11:55:25 +01:00
Jonathan G Rennison
513f6db718 Increase command log ring buffer size to 256 2021-09-30 18:42:51 +01:00
Jonathan G Rennison
65c20edde7 Settings: Merge orderproc into guiproc 2021-09-29 20:10:38 +01:00
Jonathan G Rennison
db11c1d927 Add setting description help text for extra asymmetric linkgraph modes
See also: #321
2021-09-29 19:41:59 +01:00
Jonathan G Rennison
47156122fa Settings: Add a guiproc callback for general settings GUI operations 2021-09-29 19:32:32 +01:00
Jonathan G Rennison
1820408bf6 Merge pull request #322 from WoelfiVW/patch-2
Fix typos
2021-09-26 19:49:59 +01:00
Woelfi Von Wolfhausen
f047690dc9 Fix typo, ii
Typo, a t was missing (Frach-art to Fracht-art)
2021-09-26 18:17:04 +02:00
Woelfi Von Wolfhausen
06b9881a05 Fix typos
Fix some typos regarding formality and noun-is-written-big-rules
2021-09-26 17:57:37 +02:00
Jonathan G Rennison
9ad5e4baf0 Add maximum speed (fully loaded) to train window sort list 2021-09-18 23:51:08 +01:00
Jonathan G Rennison
2e626d70e8 Debug: Add minimum_life to house debug window 2021-09-18 12:43:22 +01:00
Jonathan G Rennison
0dcb04f450 Fix #320: Misspelling of SLXI chunk name 2021-09-17 03:22:06 +01:00
Jonathan G Rennison
e7480620af Include liblzma error code in message 2021-09-15 19:28:11 +01:00
Jonathan G Rennison
54e2d1b851 Log SLXI version label at level sl=2 2021-09-14 19:20:14 +01:00
Jonathan G Rennison
656a8b3b4f Changelog: Remove item which was accidentally not included in the release
"The reverse behind signal pathfinder now takes into account the
train length to avoid reversing sidings which are too short."
2021-09-13 02:50:15 +01:00
Jonathan G Rennison
7018babeac Reverse behind signal pathfinding now takes into account train length
This is to avoid pathfinding into a reversing track section which
is too short
2021-09-13 02:42:24 +01:00
Charles Pigott
29df09e917 Fix #9527: Crash when trying to place multitile objects at map edge
(cherry picked from commit a2d93441fab53077c832247f09263762c38c8e90)
2021-09-13 02:42:24 +01:00
Jonathan G Rennison
aff4dc74d0 Avoid premature reservations with reverse at waypoint orders with wait time 2021-09-13 00:48:35 +01:00
Jonathan G Rennison
5be32627b7 Fix extra aspects variable not being set for newly generated maps 2021-09-12 17:36:47 +01:00
Jonathan G Rennison
fbc2d9fd46 Version: Committing version data for tag: jgrpp-0.43.0 2021-09-12 11:48:47 +01:00
Tyler Trahan
9d18a8869f Fix #8603: Don't give focus to text filter when opening Object GUI (#9547)
(cherry picked from commit 66620b497b)
2021-09-12 11:23:10 +01:00
Jonathan G Rennison
155ef9bb0d Merge pull request #306 from TELK 2021-09-12 10:26:44 +01:00
TELK
efec8cb02c Update: Korean translation up to 0748d54 2021-09-12 09:45:10 +09:00