Commit Graph

48601 Commits

Author SHA1 Message Date
Jonathan G Rennison
a1d6354caf Fix: Out of bounds tile access in ErrmsgWindow::OnInitialPosition
This fixes part A of #7619, but not part B.

Vehicle::x_pos and Vehicle::y_pos are not required to be within the map bounds.

See also: GetTileHeightBelowAircraft()
2019-11-14 08:13:44 +01:00
Jonathan G Rennison
b07a1f8426 Fix possible incorrect tile index in FindNearestHangar
See also: https://github.com/OpenTTD/OpenTTD/issues/7619
2019-11-13 22:16:02 +00:00
glx
da2504a0de Fix e3511ecac: don't use bash specific syntax 2019-11-13 22:11:45 +01:00
Jonathan G Rennison
bbd487a2a7 Revert "Avoid unnecessary calls to SettingsDisableElrail in AfterLoadGame"
This reverts commit 5008a09fe9.

This seems to cause regressions with some older savegames/GRF configurations.
2019-11-13 20:21:18 +00:00
Andy
cfc4568ddc Doc: revised README to be more helpful to casual GitHub visitors 2019-11-13 20:40:18 +01:00
translators
b8abd54181 Update: Translations from eints
czech: 5 changes by djst
2019-11-13 19:45:40 +01:00
glx
196247ae71 Codechange: [AzurePipeline] move docs and source to developer files section 2019-11-13 18:53:38 +01:00
glx
e3511ecacd Codechange: [AzurePipeline] add developer files section in manifest 2019-11-13 18:53:38 +01:00
glx
9fc6329066 Cleanup: Remove unused strings 2019-11-13 08:11:37 +00:00
glx
fa657c8360 Fix #7631: 16 out cargo support for industry directory 2019-11-13 08:11:37 +00:00
Jonathan G Rennison
cbdd9f84d8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/console_gui.cpp
#	src/lang/korean.txt
#	src/video/sdl2_v.cpp
#	src/video/sdl2_v.h
#	src/window.cpp
#	src/window_gui.h
2019-11-12 18:43:10 +00:00
Jonathan G Rennison
ea587bc112 Revert "Configure: Bump minimum sdl2 version to 2.0.5"
This reverts commit 93dffed00a.

This is no longer necessary given f13b1845.
2019-11-12 18:28:54 +00:00
translators
4eab70f84e Update: Translations from eints
polish: 115 changes by azabost
vietnamese: 5 changes by nglekhoi
2019-11-10 19:45:40 +01:00
S. D. Cloudt
13cc8a0cee Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
Jonathan G Rennison
a15ace0f5b Fix #7783, Fix #7816: [SDL2] Fix input handling in edit context
In particular this fixes handling of the shift key
2019-11-10 17:58:42 +00:00
Jonathan G Rennison
1dba06656d Codechange: Add utility function for whether the focused window is a console 2019-11-10 17:58:42 +00:00
Jonathan G Rennison
81f159434d Codechange: Add EditBoxGainedFocus method to VideoDriver base class 2019-11-10 17:58:42 +00:00
Jonathan G Rennison
46f7c6a641 Change: [SDL2] Add an "unprintable" flag to struct VkMapping
SDL_Keysym::sym is not suitable for checking whether the character
is printable or not
2019-11-10 17:58:42 +00:00
Jonathan G Rennison
d41378c00a Fix: [SDL2] Page down key not handled
SDLK_PAGEUP and SDLK_PAGEDOWN are not sequential
They must have separate entries in _vk_mapping
2019-11-10 17:58:42 +00:00
Jonathan G Rennison
3db399d7d9 Fix: [SDL2] Detection of backtick scancode
SDL_Keysym::scancode is a SDL_SCANCODE_* constant, not a raw scan code
2019-11-10 17:58:42 +00:00
Samu
3d362f2513 Fix #7697: Add a Missing AddProducedCargo proc for HQ
On TileLoop_Object, HQs are able to produce and move passengers and mail to stations, but querying the HQ tiles for cargo supplied was returning nothing. This makes it so that they return +1 to both passengers and mail.
2019-11-10 17:58:02 +00:00
Jonathan G Rennison
e568100407 Fix SlError exception handling in threaded load mode 2019-11-07 01:17:41 +00:00
Jonathan G Rennison
785eed2958 Fix loading of savegames which use LZO compression 2019-11-07 00:18:24 +00:00
Jonathan G Rennison
b26e173b86 Fix out of bounds tile access in ErrmsgWindow::OnInitialPosition
See: https://github.com/OpenTTD/OpenTTD/issues/7619
2019-11-06 22:47:12 +00:00
Jonathan G Rennison
7174d8e9a0 Version: Committing version data for tag: jgrpp-0.32.2 2019-11-06 17:58:40 +00:00
Jonathan G Rennison
ca3c72438e Merge branch 'master' into jgrpp
# Conflicts:
#	Makefile.bundle.in
#	src/os/macosx/string_osx.cpp
#	src/station_cmd.cpp
2019-11-06 17:49:00 +00:00
Jonathan G Rennison
91ca46c774 Fix -Wdeprecated-copy and -Wclass-memaccess warnings on GCC 9 2019-11-05 18:08:02 +00:00
Jonathan G Rennison
e81697c363 cpp-btree: Fix -Wdeprecated-copy warnings on GCC 9 2019-11-05 18:07:49 +00:00
Jonathan G Rennison
0a027a279d Configure: Add workaround for stack misalignment bug on MacOS 10.15
See: https://forums.developer.apple.com/thread/121887
See: https://trac.ffmpeg.org/ticket/8073
See: https://github.com/jedisct1/libsodium/issues/848
2019-11-05 18:02:06 +00:00
Jonathan G Rennison
7046327b67 Configure: Add configure switch to control use of sigaltstack 2019-11-05 17:59:11 +00:00
Jonathan G Rennison
a7404a88bd OSX: Remove use of sigaltstack 2019-11-05 17:57:58 +00:00
Jonathan G Rennison
2ccd3fb5c7 Configure: Add log messages for when debug features disabled 2019-11-05 17:55:13 +00:00
Charles Pigott
85b517cd93 Fix #7606: Game crash when trying to clean up a crashed script
Also fix another possible memory leak

(cherry picked from commit cdf9ff6f5f505517600dc487bc49d9e3cca90d9a)
2019-11-05 17:53:35 +00:00
Jonathan G Rennison
daf7cf1913 Fix: SDL2: Detection of backtick scancode
SDL_Keysym::scancode is a SDL_SCANCODE_* constant, not a raw scan code
2019-11-04 22:57:55 +00:00
Jonathan G Rennison
86953e1bef Change: SDL2: Add an "unprintable" flag to struct VkMapping
SDL_Keysym::sym is not suitable for checking whether the character
is printable or not
2019-11-04 22:56:35 +00:00
Jonathan G Rennison
ab54beb3af Fix: SDL2: Page down key: SDLK_PAGEUP and SDLK_PAGEDOWN are not sequential
They must have separate entries in _vk_mapping
2019-11-04 22:56:33 +00:00
Jonathan G Rennison
47629d6ed9 Windows: Attempt to log stack overflow and heap corruption exceptions 2019-11-04 03:30:42 +00:00
Jonathan G Rennison
beeab28e78 Fix 66b32df7: Use after free in GRFFileScanner::AddFile 2019-11-03 23:59:25 +00:00
Jonathan G Rennison
2be619ea88 Fix #7820: Heap use after free when removing oil rig 2019-11-03 00:39:38 +01:00
Jonathan G Rennison
fe4fa46da3 Fix heap use after free when removing oil rig 2019-11-02 20:55:14 +00:00
Jonathan G Rennison
e7170463f0 Tidy up dead code in DeleteOilRig 2019-11-02 20:54:44 +00:00
translators
460f73cd2d Update: Translations from eints
tamil: 22 changes by aswn
2019-11-02 19:45:41 +01:00
Charles Pigott
6929429f0f
Fix ccb4c37: Use of possibly uninitialised pointer (#7818) 2019-11-02 13:24:38 +00:00
Charles Pigott
729caa135b Fix: Remove duplicate entry from changelog 2019-11-02 11:31:59 +00:00
Charles Pigott
3775381c10 Fix: [Pipelines] Account for versions being more than one digit when generating changelog output 2019-11-02 11:31:59 +00:00
SamuXarick
ccb4c3797f Fix #5405: Aircraft could route to depots outside their range (#7104) 2019-11-02 11:26:04 +00:00
Nikolas Nyby
4884dcacba Fix #7784: up/down/home/end key behavior in SDL2
Closes #7784.
2019-11-01 23:41:47 +01:00
Michael Lutz
d5a9bd404a Codechange: [OSX] Use std::unique_ptr with a custom deleter to simply memory management of Core Foundation types. 2019-11-01 22:32:53 +01:00
Jonathan G Rennison
c84a454d70 Network: Use shorter UDP MTU where data can be split across multiple packets. 2019-10-31 20:40:07 +00:00
translators
58122983fb Update: Translations from eints
korean: 6 changes by telk5093
2019-10-30 19:45:40 +01:00