Commit Graph

51479 Commits

Author SHA1 Message Date
Jonathan G Rennison
e34cc229d1 Version: Committing version data for tag: jgrpp-0.43.2 2021-10-29 21:19:36 +01:00
Jonathan G Rennison
6bc3481931 Fix MinGW compilation issues 2021-10-29 21:18:19 +01:00
Jonathan G Rennison
5586d1a20a Remove use of deprecated allocator rebind in cpp-btree 2021-10-29 21:12:16 +01:00
Jonathan G Rennison
9540d42427 Fix cast warning in GUIHouseList
See: #307
2021-10-29 20:36:15 +01:00
Jonathan G Rennison
4a57625183 Avoid cast warnings in network packet handling
See: #307
2021-10-29 20:31:28 +01:00
Jonathan G Rennison
6ba53a9a68 Add ifdef around 32 bit length limit check in SlSetLength 2021-10-29 20:28:03 +01:00
Jonathan G Rennison
1d89fe3820 Add casts around engine property checks in GetEngineProperty 2021-10-29 20:27:12 +01:00
Jonathan G Rennison
d2e757db9a Set field size for PropertyID enum 2021-10-29 20:11:01 +01:00
Jonathan G Rennison
86e1f58bc0 Avoid unused variable warning when not using threads
See: #307
2021-10-29 20:10:39 +01:00
Jonathan G Rennison
0842621653 Remove unused _network_udp_mutex
See: #307
2021-10-29 20:05:16 +01:00
Jonathan G Rennison
8a7cb10813 Fix incorrect cast/colour operation in screenshot GetIndustryValue
See: #307
2021-10-29 20:03:29 +01:00
Jonathan G Rennison
23497dea35 Github: Enable blank issues, remove contact links section 2021-10-29 19:51:27 +01:00
Jonathan G Rennison
36f90607ba Merge pull request #326 from telk5093/jgrpp
Update: Korean translation
2021-10-29 19:47:03 +01:00
TELK
afe7824270 Update: Korean translation up to aff6dbec2d 2021-10-29 19:16:09 +09:00
TELK
ed1c0c70ea Update: Korean translation up to 9254be5 2021-10-29 19:16:09 +09:00
TELK
7b12d23e4f Update: Korean translation 2021-10-29 19:16:09 +09:00
Jonathan G Rennison
aff6dbec2d Show timetabled 0 wait times for stations/depots in timetable window 2021-10-27 00:24:26 +01:00
Jonathan G Rennison
53139c2405 Add current day/month to tracerestrict and conditional order conditionals 2021-10-26 23:39:40 +01:00
Jonathan G Rennison
944f090b46 Add settings for minimum contiguous landmass size for town/city placement 2021-10-25 00:30:25 +01:00
Jonathan G Rennison
55620ff162 Add general function for checking size of contiguous tile area 2021-10-25 00:29:51 +01:00
Jonathan G Rennison
8b5b96af77 Fix typos in PostProcessNetworks 2021-10-24 13:33:02 +01:00
Jonathan G Rennison
28fd549808 Decline company takeover offer on company's behalf if company has no client 2021-10-24 12:23:52 +01:00
Jonathan G Rennison
296987153b Add console command to offer a company for sale 2021-10-24 00:11:51 +01:00
Jonathan G Rennison
ec8512e2ea When declining to buy a company, ask the next company immediately 2021-10-24 00:07:54 +01:00
Jonathan G Rennison
a9c2c7288a Fix compilation when ENABLE_NETWORK_SYNC_EVERY_FRAME is defined
This is set by RANDOM_DEBUG

See also: https://github.com/OpenTTD/OpenTTD/issues/9624
2021-10-19 00:50:05 +01:00
Jonathan G Rennison
b58ff65c5c Debug: Fix company money state checksum being logged with wrong company 2021-10-19 00:39:41 +01:00
Jonathan G Rennison
4a1e347f8e Fix desync when using "perfect" tree placement mode in arctic climate 2021-10-19 00:38:57 +01:00
Jonathan G Rennison
900b9fdf3b Fix crash with wrong-way running on signalled tunnel/bridge
When using the ignore signals buttons, and exiting the bridge/tunnel
in some cases
2021-10-16 19:59:43 +01:00
Jonathan G Rennison
9254be5b3c Debug: Show info of all aircraft parts in vehicle debug window 2021-10-12 20:35:07 +01:00
Jonathan G Rennison
c64f48f2bd Debug: Add direction and spritenum info to vehicle debug window 2021-10-12 20:26:13 +01:00
Jonathan G Rennison
71a5abd42b Fix aircraft shadows being drawn facing the wrong direction 2021-10-12 20:19:53 +01:00
PeterN
32571a0ccd Fix: Wrong cargo line position in IndustryCargo window. (#9383)
Resolved by changing calculation to determine the offset based on centring the cargo lines in the available space.

(cherry picked from commit ce7ef4d824)
2021-10-08 18:11:02 +01:00
SamuXarick
48b287a22f Fix #9358: Don't skip empty files in tar (#9367)
(cherry picked from commit 1e6a2163a5)
2021-10-08 18:11:02 +01:00
Patric Stout
0550ca0854 Fix: on startup, NewGRF scan could case race-condition (#9382)
Creating a thread was not thread-safe. The irony.

The video-driver has a function GameLoopPause() which first checks
if the thread is the game-thread or not. For this it needs access
to this->game_thread. This variable is set in StartNewThread().

However, due to timing, it is well possible GameLoopPause() is
called from the thread well before this->game_thread is assigned.

And so we have a race-condition!

Simply solve this by preventing a thread to start till we are
done with our bookkeeping.

(cherry picked from commit b45c006ab9)
2021-10-08 18:11:02 +01:00
Patric Stout
441ff7e436 Fix: thread safety issue during exiting the game (#9380)
_exit_game is read by the draw-thread to know when to exit, but
most of the time written by the game-thread.

(cherry picked from commit c12a152ec9)
2021-10-08 18:11:02 +01:00
Patric Stout
573ab48e9c Fix 81062163: for (really) old games, station bus/truck station cache was not updated (#9366)
(cherry picked from commit 1e432fbd71)
2021-10-08 18:11:02 +01:00
TELK
3e78624965 Fix #9362: Hover in online players window was slightly too big (#9364)
This causes graphical glitches at the bottom of the window.

(cherry picked from commit 2d0abf5a76)
2021-10-08 18:11:02 +01:00
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