summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-11-10Codechange: Add utility function for whether the focused window is a consoleJonathan G Rennison
2019-11-10Codechange: Add EditBoxGainedFocus method to VideoDriver base classJonathan G Rennison
2019-11-10Change: [SDL2] Add an "unprintable" flag to struct VkMappingJonathan G Rennison
SDL_Keysym::sym is not suitable for checking whether the character is printable or not
2019-11-10Fix: [SDL2] Page down key not handledJonathan G Rennison
SDLK_PAGEUP and SDLK_PAGEDOWN are not sequential They must have separate entries in _vk_mapping
2019-11-10Fix: [SDL2] Detection of backtick scancodeJonathan G Rennison
SDL_Keysym::scancode is a SDL_SCANCODE_* constant, not a raw scan code
2019-11-10Fix #7697: Add a Missing AddProducedCargo proc for HQSamu
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-03Fix #7820: Heap use after free when removing oil rigJonathan G Rennison
2019-11-02Update: Translations from eintstranslators
tamil: 22 changes by aswn
2019-11-02Fix ccb4c37: Use of possibly uninitialised pointer (#7818)Charles Pigott
2019-11-02Fix #5405: Aircraft could route to depots outside their range (#7104)SamuXarick
2019-11-01Fix #7784: up/down/home/end key behavior in SDL2Nikolas Nyby
Closes #7784.
2019-11-01Codechange: [OSX] Use std::unique_ptr with a custom deleter to simply memory ↵Michael Lutz
management of Core Foundation types.
2019-10-30Update: Translations from eintstranslators
korean: 6 changes by telk5093
2019-10-29Update: Translations from eintstranslators
korean: 2 changes by telk5093
2019-10-28Add: MeCharles Pigott
2019-10-27Fix: spelling/grammar in script_tile.hpp (#7804)James103
2019-10-27Update: Translations from eintstranslators
spanish (mexican): 2 changes by Absay
2019-10-26Fix #7733: Crash when removing a dock next to an industry without a stationCharles Pigott
2019-10-26Fix 53f8d0b81: signed/unsigned warnings (#7803)glx22
2019-10-25Fix: Solved helicopter takeoff issue with international airportsJack McKiernan
Helicopters can now take off from just outside the hangars.
2019-10-25Codechange: Replaced 255's with an enum entry TERMGROUPJack McKiernan
2019-10-25Codechange: Replaced 0's in heading field with TO_ALLJack McKiernan
2019-10-25Fix #6219: Allow taking off from hangar in commuter airportJack McKiernan
Previously, a helicopter in the hangar of a commuter airport would have to wait until HELIPAD2 was free before it could takeoff. Now, a helicopter in the hangar can takeoff from just outside the hangar.
2019-10-25Fix: Possible double path separator in FiosMakeFilenameJuriy Petrochenkov
2019-10-25Codechange: Don't use SDL_CreateRGBSurfaceWithFormat()Nikolas Nyby
This function requires libSDL 2.0.5 or higher. It looks like we don't need to use it, and can just use the original SDL_CreateRGBSurface(), with the masks set to 0, to trigger the default 8-bit format, which is SDL_PIXELFORMAT_INDEX8. Closes #7785 Note: this code path is activated by using an 8-bit blitter, like: ./bin/openttd -b 8bpp-simple
2019-10-22Add: [Script] ScriptEventVehicleAutoReplaced.glx
2019-10-21Fix #7561: Fix power/running-cost vehicle sorterdorobouNeko
2019-10-21Update: Translations from eintstranslators
finnish: 6 changes by hpiirai tamil: 62 changes by aswn dutch: 2 changes by JanWillem
2019-10-20Update: Translations from eintstranslators
russian: 2 changes by Lone_Wolf
2019-10-19Fix: add savegame version to trading age settingJack Baron
2019-10-19Fix: Bump savegame versionJack Baron
2019-10-19Feature: Configure minimum share trading yearsJack Baron
2019-10-19Codechange: Use std::vector for industry tile layoutsNiels Martin Hansen
2019-10-17Update: Translations from eintstranslators
french: 1 change by glx
2019-10-12Fix #7703: Prevent sounds being produced by inactive industries (#7752)abmyii
2019-10-08Update: Translations from eintstranslators
chinese (traditional): 1 change by firetimer chinese (simplified): 66 changes by firetimer
2019-10-08Fix #6407: Show snowy ground sprites for depots (#7671)stormcone
This is a quick fix by @KeldorKatarn: https://github.com/KeldorKatarn/OpenTTD_PatchPack/commit/65e656b9d6b24476d074ec6b41830a8f197d535b It has the drawback that snow is draw to the inside the depots as well, as the removed comment suggests.
2019-10-08Codechange: Performance improvement in k-d tree FindNearest()Gabda
2019-10-08Fix #7635: Game crash on exit scenario editor.stormcone
2019-10-07Fix: [Cygwin] Fix missing AI_ADDRCONFIG declarationJoe Stringer
Fixes the following complaints: src/network/core/address.cpp: In member function 'const sockaddr_storage* NetworkAddress::GetAddress()': src/network/core/address.cpp:134:55: error: 'AI_ADDRCONFIG' was not declared in this scope this->Resolve(this->address.ss_family, SOCK_STREAM, AI_ADDRCONFIG, nullptr, ResolveLoopProc); Signed-off-by: Joe Stringer <joe@wand.net.nz>
2019-10-07Fix: [Cygwin] Fix missing declaration of strdup()Joe Stringer
src/depend/depend.cpp: In constructor 'File::File(const char*)': src/depend/depend.cpp:170:19: error: 'strdup' was not declared in this scope this->dirname = strdup(filename); ^~~~~~ Signed-off-by: Joe Stringer <joe@wand.net.nz>
2019-10-07Fix: [Cygwin] Fix missing definitions in stdafxJoe Stringer
Fix the following compile errors: In file included from openttd/src/debug.h:15:0, from openttd/src/string.cpp:13: openttd/src/cpu.h:35:19: error: 'uint' was not declared in this scope bool HasCPUIDFlag(uint type, uint index, uint bit); openttd/src/string.cpp: In function 'char* strcasestr(const char*, const char*)': openttd/src/string.cpp:548:7: error: 'strncasecmp' was not declared in this scope if (strncasecmp(haystack, needle, needle_len) == 0) return const_cast<char *>(haystack); openttd/src/strgen/strgen_base.cpp: In function 'void EmitPlural(Buffer*, char*, int)': openttd/src/core/alloc_func.hpp:136:6: error: 'alloca' was not declared in this scope (T*)alloca((num_elements) * sizeof(T))) Signed-off-by: Joe Stringer <joe@wand.net.nz>
2019-10-06Fix 71a3e8346: strings need to be copied too.Michael Lutz
If it's not, iterating on it in a loop is quite pointless.
2019-10-04Fix 71a3e8346: decode_params need to be copied too (#7760)glx22
2019-10-04Update: Translations from eintstranslators
estonian: 12 changes by henrikp
2019-10-02Update: Translations from eintstranslators
indonesian: 2 changes by fanioz french: 3 changes by arikover hungarian: 4 changes by Brumi
2019-09-30Update: Translations from eintstranslators
czech: 91 changes by djst, 6 changes by belaseoci spanish (mexican): 2 changes by Absay
2019-09-30Fix: Signedness issue in midi driverCharles Pigott
2019-09-30Fix: clang and MSVC warnings (glx)Charles Pigott
2019-09-30Codechange: Fix warning about discarding qualifiers by *really* casting the ↵Charles Pigott
variable