Commit Graph

36230 Commits (65152503de771f3c21c0b4d3e9f1444f1c8031dd)

Author SHA1 Message Date
Jonathan G Rennison a15ace0f5b Fix #7783, Fix #7816: [SDL2] Fix input handling in edit context
In particular this fixes handling of the shift key
5 years ago
Jonathan G Rennison 1dba06656d Codechange: Add utility function for whether the focused window is a console 5 years ago
Jonathan G Rennison 81f159434d Codechange: Add EditBoxGainedFocus method to VideoDriver base class 5 years ago
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
5 years ago
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
5 years ago
Jonathan G Rennison 3db399d7d9 Fix: [SDL2] Detection of backtick scancode
SDL_Keysym::scancode is a SDL_SCANCODE_* constant, not a raw scan code
5 years ago
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.
5 years ago
Jonathan G Rennison e568100407 Fix SlError exception handling in threaded load mode 5 years ago
Jonathan G Rennison 785eed2958 Fix loading of savegames which use LZO compression 5 years ago
Jonathan G Rennison b26e173b86 Fix out of bounds tile access in ErrmsgWindow::OnInitialPosition
See: https://github.com/OpenTTD/OpenTTD/issues/7619
5 years ago
Jonathan G Rennison ca3c72438e Merge branch 'master' into jgrpp
# Conflicts:
#	Makefile.bundle.in
#	src/os/macosx/string_osx.cpp
#	src/station_cmd.cpp
5 years ago
Jonathan G Rennison 91ca46c774 Fix -Wdeprecated-copy and -Wclass-memaccess warnings on GCC 9 5 years ago
Jonathan G Rennison e81697c363 cpp-btree: Fix -Wdeprecated-copy warnings on GCC 9 5 years ago
Jonathan G Rennison a7404a88bd OSX: Remove use of sigaltstack 5 years ago
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)
5 years ago
Jonathan G Rennison daf7cf1913 Fix: SDL2: Detection of backtick scancode
SDL_Keysym::scancode is a SDL_SCANCODE_* constant, not a raw scan code
5 years ago
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
5 years ago
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
5 years ago
Jonathan G Rennison 47629d6ed9 Windows: Attempt to log stack overflow and heap corruption exceptions 5 years ago
Jonathan G Rennison beeab28e78 Fix 66b32df7: Use after free in GRFFileScanner::AddFile 5 years ago
Jonathan G Rennison 2be619ea88 Fix #7820: Heap use after free when removing oil rig 5 years ago
Jonathan G Rennison fe4fa46da3 Fix heap use after free when removing oil rig 5 years ago
Jonathan G Rennison e7170463f0 Tidy up dead code in DeleteOilRig 5 years ago
translators 460f73cd2d Update: Translations from eints
tamil: 22 changes by aswn
5 years ago
Charles Pigott 6929429f0f
Fix ccb4c37: Use of possibly uninitialised pointer (#7818) 5 years ago
SamuXarick ccb4c3797f Fix #5405: Aircraft could route to depots outside their range (#7104) 5 years ago
Nikolas Nyby 4884dcacba Fix #7784: up/down/home/end key behavior in SDL2
Closes #7784.
5 years ago
Michael Lutz d5a9bd404a Codechange: [OSX] Use std::unique_ptr with a custom deleter to simply memory management of Core Foundation types. 5 years ago
Jonathan G Rennison c84a454d70 Network: Use shorter UDP MTU where data can be split across multiple packets. 5 years ago
translators 58122983fb Update: Translations from eints
korean: 6 changes by telk5093
5 years ago
translators 1a13e03c49 Update: Translations from eints
korean: 2 changes by telk5093
5 years ago
Charles Pigott a407db54cf Add: Me 5 years ago
James103 f1204f0d9d Fix: spelling/grammar in script_tile.hpp (#7804) 5 years ago
translators 90682f8623 Update: Translations from eints
spanish (mexican): 2 changes by Absay
5 years ago
Jonathan G Rennison e1783be6d1 NewGRF debug window: Add a subset of house properties 5 years ago
Charles Pigott 2f4de0a0fe Fix #7733: Crash when removing a dock next to an industry without a station 5 years ago
glx22 880680304d
Fix 53f8d0b81: signed/unsigned warnings (#7803) 5 years ago
Jonathan G Rennison 5bf52ab736 SDL2: Fix Home and End keys not working in text editing contexts 5 years ago
Jack McKiernan f52e605b51 Fix: Solved helicopter takeoff issue with international airports
Helicopters can now take off from just outside the hangars.
5 years ago
Jack McKiernan 9479f45d1a Codechange: Replaced 255's with an enum entry TERMGROUP 5 years ago
Jack McKiernan d39f889775 Codechange: Replaced 0's in heading field with TO_ALL 5 years ago
Jack McKiernan d843b73280 Fix #6219: Allow taking off from hangar in commuter airport
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.
5 years ago
Juriy Petrochenkov 8c6a16ba28 Fix: Possible double path separator in FiosMakeFilename 5 years ago
Nikolas Nyby f13b184588 Codechange: Don't use SDL_CreateRGBSurfaceWithFormat()
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
5 years ago
glx 12e43c697d Add: [Script] ScriptEventVehicleAutoReplaced. 5 years ago
dorobouNeko cbefc1d994 Fix #7561: Fix power/running-cost vehicle sorter 5 years ago
translators 81272000f8 Update: Translations from eints
finnish: 6 changes by hpiirai
tamil: 62 changes by aswn
dutch: 2 changes by JanWillem
5 years ago
translators 0d599e155f Update: Translations from eints
russian: 2 changes by Lone_Wolf
5 years ago
Jonathan G Rennison c4d22226d1 Error window: Fix "undefined string" appearing in 3rd line
Caused by bad merge resolution with 71a3e834
5 years ago
Jonathan G Rennison 299becbb2f SDL2: Fix up/down keys in console window 5 years ago
Jonathan G Rennison b6e9817edb Link graph: Explicitly flag invalidated flow stats instead of minimising their flows
Entirely exclude invalidated flow stats from link stats

Delete invalidated flow stats if they stay invalid for 32 link graph jobs

This is to prevent large numbers of invalidated flow stats from
unduly influencing link statistics
5 years ago
Jack Baron f159d91572 Fix: add savegame version to trading age setting 5 years ago
Jack Baron e4f08f2880 Fix: Bump savegame version 5 years ago
Jack Baron 7c9dedb94f Feature: Configure minimum share trading years 5 years ago
Niels Martin Hansen 53f8d0b815 Codechange: Use std::vector for industry tile layouts 5 years ago
translators c95c349dd5 Update: Translations from eints
french: 1 change by glx
5 years ago
Jonathan G Rennison 67a725e813 SDL2: Handle Fcitx keypresses which do not generate an SDL_KEYDOWN 5 years ago
Jonathan G Rennison 2deadabc97 Saveload: Improve SpringPP savegame detection
Trunk savegames will soon reach the range of versions used by SpringPP
5 years ago
Jonathan G Rennison 3c18e81e0d
Merge pull request #104 from telk5093/jgrpp
ko-KR: Update translation
5 years ago
TELK 6eef6ac8d5 ko-KR: Update translation for 0.32.0 5 years ago
Jonathan G Rennison 52dd75589a TBTR: Fix width of bottom row of create/edit template window
See #105
5 years ago
Jonathan G Rennison 87acac9700 SDL2: Fix handling of shift key in edit context 5 years ago
Jonathan G Rennison 18d51ccb80 Fix compilation on MSVC 5 years ago
abmyii ac21118736 Fix #7703: Prevent sounds being produced by inactive industries (#7752) 5 years ago
Jonathan G Rennison 1bbfd69657 Bump tracerestrict version due to 7332c0b6 5 years ago
Jonathan G Rennison 2ba5b2531e Fix compilation on MinGW 5 years ago
Jonathan G Rennison 03fbe87752 Merge branch 'master' into jgrpp 5 years ago
Jonathan G Rennison 29ed470e04 Fcitx: Fix edge cases around text handling and setup 5 years ago
Jonathan G Rennison 641b008374 Build: Add configure defines to detailed version output 5 years ago
Jonathan G Rennison 24b5cb0fdb IME: Add direct support for Fcitx IME input, with SDL2 on *nix/X11. 5 years ago
Jonathan G Rennison 91e05f6306 Fix 0472327e: Infinite loop on copying unset scheduled dispatch
Fixes: #103
5 years ago
translators e2e112baaa Update: Translations from eints
chinese (traditional): 1 change by firetimer
chinese (simplified): 66 changes by firetimer
5 years ago
Jonathan G Rennison 7332c0b673 Tracerestrict: Add load percentage conditional 5 years ago
stormcone f1712a54b2 Fix #6407: Show snowy ground sprites for depots (#7671)
This is a quick fix by @KeldorKatarn:
65e656b9d6

It has the drawback that snow is draw to the inside the depots as well, as the removed comment suggests.
5 years ago
Gabda 652fb40652 Codechange: Performance improvement in k-d tree FindNearest() 5 years ago
Jonathan G Rennison 34a6f3c72a Fix text input when not in edit box mode, fix backtick handling 5 years ago
Jonathan G Rennison 5d1578bb7f Fix IME positioning with SDL2 5 years ago
Jonathan G Rennison 400f75bafb Add IME related info on SDL2 to CrashLog::LogLibraries 5 years ago
stormcone 1e5029563c Fix #7635: Game crash on exit scenario editor. 5 years ago
Jonathan G Rennison 6c21c93192 Add command line switch -Z to write detailed version information 5 years ago
Jonathan G Rennison 3b178b6f07 Scheduled dispatch: Add order backup support 5 years ago
Jonathan G Rennison 0472327ef1 Scheduled dispatch: Simplify schedule copying 5 years ago
Jonathan G Rennison ef4055a7dc Scheduled dispatch: Mark read accessers as const 5 years ago
Joe Stringer b4f1056097 Fix: [Cygwin] Fix missing AI_ADDRCONFIG declaration
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>
5 years ago
Joe Stringer 51f8c8a568 Fix: [Cygwin] Fix missing declaration of strdup()
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>
5 years ago
Joe Stringer 66c32533ec Fix: [Cygwin] Fix missing definitions in stdafx
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>
5 years ago
Jonathan G Rennison 94761b3fcd Fix order backup not saving/restoring timetable automate/separation state 5 years ago
Jonathan G Rennison 3e8b091913 Linkgraph: MCF: Skip source node Dijkstra when all demand satisfied 5 years ago
Michael Lutz dd11990ce0 Fix 71a3e8346: strings need to be copied too.
If it's not, iterating on it in a loop is quite pointless.
5 years ago
Jonathan G Rennison 04cf7d5500 Fix modifier key window not always updating 5 years ago
Jonathan G Rennison 9742a161b3 Clear _focused_window in window destructor before calling OnFocuLost
This is such that EditBoxInGlobalFocus does not return true
within any OnFocusLost handlers
5 years ago
Jonathan G Rennison b77484c930 Merge branch 'master' into jgrpp 5 years ago
Jonathan G Rennison a4c677a571 Add basic IME support to SDL2 video driver 5 years ago
Jonathan G Rennison edfd378e93 Merge branch 'master' into jgrpp
# Conflicts:
#	source.list
#	src/blitter/32bpp_anim.cpp
#	src/linkgraph/linkgraphjob.cpp
#	src/order_cmd.cpp
#	src/vehicle.cpp
#	src/vehicle_type.h
5 years ago
Jonathan G Rennison 4438413f48 Linkgraph: Replace RB-tree with B-tree in MCF Dijkstra 5 years ago
Jonathan G Rennison 455e694e79 Refactor effect vehicle cache to reduce cost of inserts/removes 5 years ago
glx22 4154cf00f4
Fix 71a3e8346: decode_params need to be copied too (#7760) 5 years ago
translators 875419e4ee Update: Translations from eints
estonian: 12 changes by henrikp
5 years ago
Jonathan G Rennison ac5139343a Maintain free list for text effect entries 5 years ago
Jonathan G Rennison 627cdf83eb Pool: Add a free bitmap, use for finding free slots 5 years ago
Jonathan G Rennison 23ad4ec879 YAPF: Reduce need to scan open list queue when moving best node to closed list 5 years ago
Jonathan G Rennison 33f5e00700 Null video driver: Add driver parameter to run until exit 5 years ago
translators 865eea8173 Update: Translations from eints
indonesian: 2 changes by fanioz
french: 3 changes by arikover
hungarian: 4 changes by Brumi
5 years ago
Jonathan G Rennison 170e71787b Add console commands to dump station flow stats 5 years ago
Jonathan G Rennison 0246d59c8d FlowStat: Replace btree_map with flat map which is inlined in small case
Inline storage for size <= 2
Size = 1 is ~90%
Size = 2 is ~9%
Size >=3 is ~1% and gets a separate allocation
5 years ago
Jonathan G Rennison 90550d9642 FlowStatMap: Replace RB-tree with btree-indexed vector 5 years ago
Jonathan G Rennison 0a1c1809ab Save/load: Pre-filter SaveLoad descriptor arrays for current version/mode, for chunks with many objects 5 years ago
translators 2e30601b9c Update: Translations from eints
czech: 91 changes by djst, 6 changes by belaseoci
spanish (mexican): 2 changes by Absay
5 years ago
Charles Pigott 3cc6b7f725 Fix: Signedness issue in midi driver 5 years ago
Charles Pigott fe9731d32c Fix: clang and MSVC warnings (glx) 5 years ago
Charles Pigott 7b400d43c1 Codechange: Fix warning about discarding qualifiers by *really* casting the variable 5 years ago
Charles Pigott b839e355ba Fix: Compilation error on MinGW due to usage of C++17 template deduction 5 years ago
Charles Pigott 6378a78817 Codechange: Explicitly move a few variables to avoid a copy constructor (fixes warning from clang) 5 years ago
Charles Pigott 150884a93f Fix: Remove workaround for clang-3.8, now that GCC9 warns about it 5 years ago
Charles Pigott 73a2cee779 Fix: Quiet a bogus -Wmaybe-unitialized warning from GCC9 5 years ago
Charles Pigott 71a3e83468 Fix: GCC9's warnings about deprecated implicit assignment operators 5 years ago
frosch 041088d317
Fix fbbbc6e1931: Crash when creating orders to stations with relocated station sign. (#7755)
Station::xy is the position of the station sign, and not necessarily a tile of the station.
5 years ago
JMcKiern 04f659e768 Fix: Some typos found using codespell 5 years ago
Michael Lutz 316e4e9417 Fix: [OSX] Macro name conflict when trying to compile the QuickTime music driver. 5 years ago
Michael Lutz 61d6fa97cc Fix: [OSX] Wrong allocator usage for creating a CFString. 5 years ago
Jonathan G Rennison 02bd91477d Merge branch 'cpp-btree' into jgrpp 5 years ago
Jonathan G Rennison 9176d9a284 cpp-btree: Update to match upstream
Add noexcept to swap-based move constructors and copy/move assignment operator
5 years ago
Jonathan G Rennison ca4db69f12 Fix OrderDestinationIsAllowed not handling nearest depot orders 5 years ago
Jonathan G Rennison 5008a09fe9 Avoid unnecessary calls to SettingsDisableElrail in AfterLoadGame 5 years ago
Jonathan G Rennison 13138bd97b Bump FIO buffer size 5 years ago
Jonathan G Rennison b6d755221a Add load filter to perform savegame decompression in a separate thread 5 years ago
Jonathan G Rennison 9354b5c15c Avoid iterating vehicle list to release disaster vehicles if there are none 5 years ago
Jonathan G Rennison 1391f8fc59 Use insert hints for station flow/share map insertion 5 years ago
Jonathan G Rennison 725ff47267 Avoid quadratic behaviour in updating nearby lists in RecomputeCatchmentForAll 5 years ago
Jonathan G Rennison 158f063a38 Avoid redundant re-scans for AI and game script files 5 years ago
Jonathan G Rennison 66b32df7cc Use multiple threads for NewGRF scan MD5 calculations, on multi-CPU machines 5 years ago
Jonathan G Rennison 8b8a97c248 Update line height cache in Win32FontCache::SetFontSize 5 years ago
Jonathan G Rennison 000f86f23d Fix town growth to correctly follow custom bridge heads 5 years ago
Jonathan G Rennison e040ea1ce6 Fix road/tram catenary not being drawn on custom bridge heads 5 years ago
Jonathan G Rennison fc5df15b77 Fix fbbbc6e1931: Assumption that Station::xy is a station tile 5 years ago
Jonathan G Rennison e0b33324a5 Fix 4bd33c6bd0: Assertion failure on non-road tiles 5 years ago
translators ceb29cef85 Update: Translations from eints
chinese (simplified): 12 changes by ww9980
5 years ago
translators 23168ff3d8 Update: Translations from eints
chinese (simplified): 6 changes by ww9980
5 years ago
nikolas 2d27e8e685 Add #6173: New SDL 2 based video and sound drivers (#7086) 5 years ago
translators b18a58d5e1 Update: Translations from eints
spanish (mexican): 9 changes by Absay
5 years ago
Jonathan G Rennison 1f535915d1 Merge branch 'master' into jgrpp-nrt
# Conflicts:
#	config.lib
#	src/core/bitmath_func.hpp
#	src/lang/korean.txt
#	src/main_gui.cpp
#	src/order_gui.cpp
#	src/script/api/script_object.cpp
#	src/station_cmd.cpp
#	src/video/cocoa/wnd_quartz.mm
5 years ago
Jonathan G Rennison ef9f6f769e Improve logging of vehicle details in CheckCaches 5 years ago
Jonathan G Rennison be0ea1b03f Increase desync msg ring buffer size, improve DumpDesyncMsgLog format 5 years ago
Jonathan G Rennison 0ce032339e Improve formatting of CompanyInfrastructure::Dump 5 years ago
glx 1f418555a1 Fix #7742, 66dd7c3: widget position can be negative 5 years ago
Jonathan G Rennison 4bd33c6bd0 Fix convert tool on road depots updating infra totals incorrectly 5 years ago
Jonathan G Rennison a30638bc4a Merge branch 'jgrpp' into jgrpp-nrt 5 years ago
Jonathan G Rennison d77c2d380f Add VehicleCache fields to vehicle debug inspect window 5 years ago
Michael Lutz ed6a427fcc Change: [OSX] Recreate backing store if the colour profile of the screen (or the screen) the game window is one changes.
This will result in changing colours if moving OpenTTD from one screen to another, but should avoid performance problems if the window is moved.
5 years ago
Michael Lutz 994664dec5 Fix #7644: [OSX] Try to use system colour space to avoid video output performance degradation. 5 years ago
Jonathan G Rennison ee812922b6 Fix mass order destination change of orders with load/unload by cargo 5 years ago
Jonathan G Rennison e4b9eeee71 Set VRF_CONSIST_SPEED_REDUCTION flag in NormaliseTrainHead 5 years ago
Jonathan G Rennison f9a8c3da46 Fix locked wait times not being preserved when moving orders to new station 5 years ago
Jonathan G Rennison 57337b76bd Fix false positives in order destination refcount mismatch check 5 years ago
Jonathan G Rennison eb8ef65a0b CheckCaches: Indicate incorrect fields in vehicle cache mismatch message 5 years ago
Jonathan G Rennison 6792495705 Add -K switch to write savegame debug data and exit 5 years ago
Jonathan G Rennison dd13f24804 Merge branch 'save_ext' into jgrpp 5 years ago
Jonathan G Rennison c83dc67767 Fix -q switch error path failing as language data not yet loaded 5 years ago
Jonathan G Rennison 1e059d1a48 Increase text buffer size in WriteSavegameInfo 5 years ago
Niels Martin Hansen d35254139a Fix #7479: Don't close construction windows when changing client name 5 years ago
Johannes E. Krause 1978b9122b Fix #7737, afbf6a5: missing return 5 years ago
glx22 2ed88d6898
Fix: inconsistent description for 32bpp-sse4-anim blitter (#7740) 5 years ago
Owen Rudge 165eae0e80 Fix: Avoid using stat to retrieve file modification times on Windows (#7731) 5 years ago
translators f81cb0a90d Update: Translations from eints
korean: 1 change by telk5093
5 years ago
Jonathan G Rennison 6d10961318 Fix RemoveDockingTile when adjacent to industry without neutral station 5 years ago
translators b30994168d Update: Translations from eints
korean: 34 changes by telk5093
5 years ago
Juriy Petrochenkov 7bdde8b41d Fix: Use natural sort when sorting the file list. 5 years ago
Max Maton e4414471dd Add: Allow GameScript to demolish without a company
This allows GameScripts to shrink towns as well as grow them.
5 years ago
Andy 9014633866 Fix: change Quartz driver colorSpace handling to address certain macOS performance issues (#7644) 5 years ago
Niels Martin Hansen 0549a81c30 Fix b3fd7879: Ignore command flags when verifying script commands
Multiplayer games has the server add some flags to the cmd value during the handling.
These flags should not be included in the verification, mask them out. Without this
masking out, scripts tend to die when executing their first command in multiplayer.
5 years ago
glx22 b3fd787959 Fix #7188: check the validity of command callback for scripts (#7701) 5 years ago
Jonathan G Rennison 4116ccd578 Windows: Do not output crash.dmp files for non-developers 5 years ago
Daniel Lee 2d9eb1c417 Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing). 5 years ago
translators 058dadf315 Update: Translations from eints
french: 4 changes by glx
5 years ago
Jonathan G Rennison b3431512ee Add modifier key window for toggling shift/ctrl key states using mouse 5 years ago
Jonathan G Rennison f681e98f0f Debug: Show order indices in vehicle debug/inspection GUI 5 years ago
Jonathan G Rennison 6ad78dd637 When copying vehicle orders, reset indices unless orders are equivalent
This fixes invalid order indices post copy when conditional
orders are used
5 years ago
JMcKiern fbbbc6e193 Fix #7692: Added industry tile to GetOrderCmdFromTile() (#7709)
Sending order command to an industry tile now checks if a neutral_station is available and sends the order to that station
5 years ago
translators c4850475c3 Update: Translations from eints
slovenian: 4 changes by matej1245
5 years ago
Niels Martin Hansen d649011dfc Fix #7702: Scaling for highscore screen 5 years ago
glx22 cf86c39be5
Fix b870596f153c17d9aa915ca67b8f6414d73cb31f: forgotten squirrel_export run (#7715) 5 years ago
uvealonso ead772324e Fix #7704: [OSX] Handle malformed UTF8 strings 5 years ago
Niels Martin Hansen a933afabfd Add: [Win32] Select MIDI device by port name 5 years ago
Nikolas Nyby 28e11623bd Codechange: math functions - use cpp-style casts 5 years ago
translators 14bca19163 Update: Translations from eints
italian: 4 changes by lorenzodv
5 years ago
Jonathan G Rennison ba9d1a0390 Merge branch 'jgrpp' into jgrpp-nrt
# Conflicts:
#	.ottdrev-vc
#	README.md
#	jgrpp-changelog.md
5 years ago
Jonathan G Rennison 9a05ea67d5 Add chicken bits setting
2 bits so far
5 years ago
Jonathan G Rennison ce130bc181 Update order destination refcount in RemoveVehicleOrdersIf 5 years ago
Jonathan G Rennison d9c112cc9e Fix #97: Desync when moving newly built wagon 5 years ago
translators c7c1d1cb0c Update: Translations from eints
spanish: 1 change by lpenap
5 years ago
Jonathan G Rennison 6562937899 Merge branch 'master' into jgrpp-nrt
# Conflicts:
#	src/console_cmds.cpp
#	src/script/api/script_order.cpp
#	src/station_cmd.cpp
#	src/statusbar_gui.cpp
#	src/town_gui.cpp
5 years ago
Jonathan G Rennison 04ef407ddf Merge branch 'jgrpp' into jgrpp-nrt
# Conflicts:
#	.ottdrev-vc
#	README.md
#	jgrpp-changelog.md
#	src/ship_cmd.cpp
5 years ago
Jonathan G Rennison 62713ad106 Fix missing declaration in c8a37d82 5 years ago
Jonathan G Rennison f1df81bdd8 Increase company ID field widths in command log dump 5 years ago
Jonathan G Rennison 942da75dd4 Fix commit 4cf60613 suppressing critical error message windows 5 years ago
Jonathan G Rennison 2e4b1d73d8 Avoid performing emergency network save more than once 5 years ago
Jonathan G Rennison 6ce7f22fe6 Send server desync log to client 5 years ago
Jonathan G Rennison 459a49cb24 Add flags for mismatch type to client desync log 5 years ago
Jonathan G Rennison ec892879f4 Add passworded mechanism to change server game settings from client 5 years ago
Jonathan G Rennison 17c054a650 Use password hash for network server and rcon passwords 5 years ago
Jonathan G Rennison 0299eaa45f Clear order backup clone when train head is moved to non-head position 5 years ago
Jonathan G Rennison 5155afee9b Ensure nearby stations list updated in CBID_HOUSE_DESTRUCTION callback 5 years ago
Jonathan G Rennison 515187058f Add nearby stations to town debug window 5 years ago
Jonathan G Rennison 4b9a4ae695 Use consistent casts/types for byte swap functions 5 years ago
Jonathan G Rennison a8786632f7 Always call UpdateTownCargoTotal in UpdateTownCargoes 5 years ago
Jonathan G Rennison 2105d21356 Merge branch 'tracerestrict' into jgrpp 5 years ago
Jonathan G Rennison ccdc75e2bf Tracerestrict: Fix non-deterministic use of _sorted_cargo_specs 5 years ago
Jonathan G Rennison c8a37d8292 Add 64 bit FindFirstBit function 5 years ago
translators dabccf70b4 Update: Translations from eints
dutch: 2 changes by JanWillem
russian: 7 changes by Lone_Wolf
5 years ago
Jonathan G Rennison d0ee897135 Unreserve and re-reserve reservations to bidi bridge/tunnel entrances when reversing train inside 5 years ago
Jonathan G Rennison dae041601d Unreserve signalled tunnel/bridge head when reversing on approach to exit 5 years ago
Jonathan G Rennison 5bc9c8ed6e Unreserve signalled tunnel/bridge head when entering from opposite to v->tile 5 years ago
Jonathan G Rennison 70ef0f562b Fix train reverse inside signalled tunnel/bridge entrance clearing reservation of incoming train 5 years ago
Niels Martin Hansen 5feb06e3f3 Add: Scale oil refinery edge distance up by map size
Also scales oil rig distance up, since they use the same algorithm.
5 years ago
Gabda b870596f15 Add #6887: Option to show zone inside local authority boundary of towns
Can be found at town information > local authority window
Layout for button is same as Graph Keys
Turn on/off for every town individually
5 years ago
Juriy Petrochenkov d986f01d07 Codechange: Reduced indentation in SaveLoadWindow::OnClick 5 years ago
Juriy Petrochenkov f0aea2d246 Fix: RemoveAirport function now returns with 'Aircraft in the way' error message as it should be. 5 years ago
translators 27d676e17a Update: Translations from eints
danish: 2 changes by njn
5 years ago
nikolas 10fe568f08 Fix: typo in ScriptList::Valuate param error (#7687) 5 years ago
nikolas 7a70900227 Fix: Typo in running costs help text 5 years ago
translators 9fd91f9b69 Update: Translations from eints
english (us): 2 changes by njn
5 years ago
nikolas 9d6fb257c3 Cleanup: Remove duplicate thread.h include (#7683) 5 years ago
Jonathan G Rennison 0aa366a24b Desync: Log seed and state checksum on desync 5 years ago
Jonathan G Rennison a1d36b02f0 Network: Add state checksum which is check in network sync 5 years ago
Jonathan G Rennison c941d2d2a6 Desync: Change sync event logging to desync debug level 2 5 years ago
Jonathan G Rennison 6d2efd0837 Crashlog: Log pathfinders and day length factor 5 years ago
Jonathan G Rennison 385960af4e Network: Decrease sync frame period when desync occurs 5 years ago
TELK bcc73bd40d Add: 'getsysdate' console command (#7658)
Add `getsysdate` console command to display system's local time, which is might be useful to check current time in script logging.
5 years ago
Johannes E. Krause afbf6a5918 Feature: Allow showing Newspaper and Ticker messages in parallel 5 years ago
glx 8cccb158e9 Fix #7672: more than 32 resolutions may be available 5 years ago
Jonathan G Rennison bc0de9b6ef Rebuild total cargo acceptance on load even for empty acceptance area 5 years ago
Jonathan G Rennison f5badfefd1 Check order destination refcount maps in CheckCaches 5 years ago
Jonathan G Rennison e28da50c4f Fix order destination refcount accounting for shared orders 5 years ago
Jonathan G Rennison 7ed86e7488 Merge branch 'jgrpp' into jgrpp-nrt 5 years ago
TTrebron 704eaf80f6 Fix #7655: Decrease buttons in cheat window do not work properly
(cherry picked from commit 425cd3e4ca)
5 years ago
Jonathan G Rennison d99b867f44 Fix crash when removing signal from tunnel/bridge with trainless reservation 5 years ago
Jonathan G Rennison 89a6cc3e03 Add game event flag for virtual train creation 5 years ago
Jonathan G Rennison 162fcb050e Only set TBTR replacement game event flag when replacement action occurs 5 years ago
Jonathan G Rennison 942dd35380 Add game events for industry create/destroy 5 years ago
TTrebron 425cd3e4ca Fix #7655: Decrease buttons in cheat window do not work properly 5 years ago
Jonathan G Rennison 99949d6559 Crash log: Fix counts in recent news messages header 5 years ago
stormcone 163192b5e0 Fix #7667: Buying an engine after buying wagons doesn't give a complete train.
(cherry picked from commit 2e686ad5d5)
5 years ago
stormcone 2e686ad5d5 Fix #7667: Buying an engine after buying wagons doesn't give a complete train. 5 years ago
stormcone 2817cd41f1 Fix #7250: Viewport kdtree not being updated for waypoints when sign moved.
Code based on the patch by JGRennison.
JGRennison/OpenTTD-patches@ac84f34062
5 years ago
TELK 196d586849 Feature: Town name filtering (#7621) 5 years ago
Jonathan G Rennison d71a7c21da Fix #7593: Crash in ScriptOrder::GetOrderDistance in VT_AIR mode
Null pointer dereference occurred when either origin_tile or dest_tile
were waypoint tiles.
5 years ago
Alberth 5981ed248a Codechange: Remove unused FioTarFirstDir and FioTarAddLink functions 5 years ago
Jonathan G Rennison 6f840a5c80 Fix road vehicles not being limited by the road type max speed 5 years ago
Jonathan G Rennison 8a01fba216 Fix crash in GetTileDesc_TunnelBridge on non-road bridges 5 years ago
Jonathan G Rennison 67dd9ffe8c Use light blue colour for station tile coverage highlight 5 years ago
Niels Martin Hansen 331eba544a Fix: Narrowing cast in one storybook command
CompanyID is 8 bit wide, so this incorrect cast would make it impossible to create story page elements for pages past 255.
5 years ago
translators 88950d8f23 Update: Translations from eints
swedish: 49 changes by daishan
spanish: 80 changes by lpenap
5 years ago
translators 24cec63a3d Update: Translations from eints
welsh: 13 changes by kazzie
spanish: 35 changes by lpenap
5 years ago
dP 36e4bd4023 Fix: Make GSGoal.QuestionClient work correctly at least for clients with ID < 2**16 5 years ago
Jonathan G Rennison ddb6c2e6e3 Add MinGW std threads include to music/win32_m.cpp
Fix uses of std::lock_guard
5 years ago
Jonathan G Rennison 1365600bed Merge branch 'jgrpp' into jgrpp-nrt 5 years ago
Jonathan G Rennison d3e0c3787f Merge branch 'master' into jgrpp-nrt
Merge trunk multiple docks implementation

# Conflicts:
#	docs/landscape_grid.html
#	src/order_cmd.cpp
#	src/pathfinder/npf/npf.cpp
#	src/pathfinder/yapf/yapf_ship.cpp
#	src/rail_cmd.cpp
#	src/saveload/afterload.cpp
#	src/saveload/oldloader_sl.cpp
#	src/saveload/station_sl.cpp
#	src/script/api/script_order.cpp
#	src/ship_cmd.cpp
#	src/station.cpp
#	src/station_base.h
#	src/station_cmd.cpp
#	src/tunnelbridge_cmd.cpp
5 years ago
translators a52bbb72a8 Update: Translations from eints
welsh: 4 changes by kazzie
5 years ago
Jonathan G Rennison a200fcf4e9 Ensure bridge road types match when joining two previous separate ends 5 years ago
Jonathan G Rennison 7555cf2965 Fix road vehicles being unable to enter bridge at custom bridge head
Type mismatch
5 years ago
Jonathan G Rennison 2164eb4b12 Fix building of road stops on town-owned one-way roads
See: https://github.com/OpenTTD/OpenTTD/issues/7626
5 years ago
Jonathan G Rennison dbc5f1baed Merge branch 'master' into jgrpp-nrt
# Conflicts:
#	src/fontcache.cpp
#	src/game/game_text.cpp
#	src/lang/korean.txt
#	src/os/macosx/crashlog_osx.cpp
#	src/os/windows/crashlog_win.cpp
#	src/station_cmd.cpp
#	src/viewport.cpp
5 years ago
Jonathan G Rennison ba8ed880c1 Merge branch 'master' into jgrpp-nrt
Merge NRT feature

# Conflicts:
#	docs/landscape.html
#	docs/landscape_grid.html
#	src/bridge_map.h
#	src/build_vehicle_gui.cpp
#	src/company_base.h
#	src/company_cmd.cpp
#	src/misc_gui.cpp
#	src/newgrf.cpp
#	src/newgrf_engine.cpp
#	src/pathfinder/follow_track.hpp
#	src/pathfinder/npf/npf.cpp
#	src/road_cmd.cpp
#	src/road_func.h
#	src/road_gui.cpp
#	src/road_map.h
#	src/road_type.h
#	src/roadveh_cmd.cpp
#	src/saveload/afterload.cpp
#	src/saveload/company_sl.cpp
#	src/script/api/script_bridge.cpp
#	src/table/newgrf_debug_data.h
#	src/tile_cmd.h
#	src/town_cmd.cpp
#	src/tunnel_map.h
#	src/tunnelbridge_cmd.cpp
5 years ago
Jonathan G Rennison eab5db9769 Fix corruption of conditional order targets when loading SpringPP savegames 5 years ago
Jonathan G Rennison 4cf60613df Delete windows before switching to GM_MENU mode in LoadIntroGame
See: https://github.com/OpenTTD/OpenTTD/issues/7635
5 years ago
Jonathan G Rennison 97221a67f2 Merge branch 'template_train_replacement' into jgrpp
# Conflicts:
#	src/saveload/vehicle_sl.cpp
5 years ago
Jonathan G Rennison bba36aef1b TBTR: Check for mixed virtual/non-virtual consists on load 5 years ago
Jonathan G Rennison 0f6c5ee622 Fix saveload exception handling when gamelog action in progress 5 years ago
glx22 a240a938a3 Fix: ignore C++ standard library headers in depend (#7578)
(cherry picked from commit 47fdbdd324)
5 years ago
peter1138 6e28727fa4 Fix: Clicking on scrollbar 'thumb' moved position up instantly.
(cherry picked from commit 82989ef076)
5 years ago
glx22 49f3592ac9 Fix: vcpkg used to patch lzma.h to define LZMA_API_STATIC for static builds (#7614)
(cherry picked from commit 846fc8fe09)
5 years ago
Jonathan G Rennison eb6cd6cf5f Change ZOOM_LVL_BASE type back to signed
Fixes viewport map mode
5 years ago
Jonathan G Rennison 36eb4165b8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/bridge_map.h
#	src/crashlog.cpp
#	src/industry.h
#	src/linkgraph/linkgraph_type.h
#	src/order_type.h
#	src/saveload/afterload.cpp
#	src/settings.cpp
#	src/settings_type.h
#	src/smallmap_gui.cpp
#	src/spritecache.cpp
#	src/stdafx.h
#	src/table/settings.h.preamble
#	src/train.h
#	src/vehicle.cpp
#	src/viewport.cpp
#	src/viewport_func.h
#	src/widgets/station_widget.h
#	src/zoom_func.h
#	src/zoom_type.h
5 years ago
Niels Martin Hansen 1e723934a1 Fix 27384486e4: Error in GM Reset sysex data 5 years ago
pnda a35b43ce93 Fix #6666: Mismatched parentheses in RTL languages 5 years ago
unknown 6f28a0c051 Fix #5685: Check for free wagons in ScriptVehicleList 5 years ago
Niels Martin Hansen 81614f2378 Fix #7633: Allow zero-cost track conversion to succeed 5 years ago
Jonathan G Rennison ac84f34062 Fix viewport kdtree not being updated for waypoints when sign moved 5 years ago
glx 603f625fda Fix f53817987: unsafe mix of type 'TileIndex' and type 'bool' 5 years ago
Niels Martin Hansen a0c78c73e3 Fix: Correctly reset playback between songs in win32_m driver 5 years ago
Niels Martin Hansen 27b7c5a5fd Fix: Correctly reset playback between songs in DMusic driver 5 years ago
Niels Martin Hansen a4cf1c8aec Fix: Don't keep mutex locked while parsing MIDI data 5 years ago
Niels Martin Hansen 9839ce006c Fix: Time values should be DWORD everywhere in win32_m 5 years ago
Niels Martin Hansen f8633fc63b Codechange: Fix comment indentation 5 years ago
Niels Martin Hansen 27384486e4 Codechange: Use common source for well-known SysEx messages in Windows music drivers 5 years ago
Niels Martin Hansen 9d8a83bf8d Codechange: Add some const in preparation 5 years ago
Niels Martin Hansen c74df8581d Codechange: Use std::mutex instead of CRITICAL_SECTION in win32_m 5 years ago
Jonathan G Rennison 94f705e45e Add missing include to tilearea_type.h 5 years ago
Jonathan G Rennison a1cf3358fe Add missing include to crashlog.h 5 years ago
Jonathan G Rennison f78b72989b Merge branch 'template_train_replacement' into jgrpp
# Conflicts:
#	src/saveload/vehicle_sl.cpp
#	src/train.h
5 years ago
Jonathan G Rennison f1946af707 TBTR: Delete leftover virtual trains on non-network client load 5 years ago
Jonathan G Rennison 858e90acb9 TBTR: Avoid leaking virtual trains from template editing window
When pressing OK to convert to template
When (unsuccessfully) selling the head unit

(cherry picked from commit 85e9a0195d)
5 years ago
Jonathan G Rennison 2b40007ca1 TBTR: Do not allocate virtual trains a unit number in NormaliseTrainHead
(cherry picked from commit 8fefef9d19)
5 years ago
Jonathan G Rennison ccfd187677 TBTR: Avoid built virtual wagons which can't be attached being orphaned
(cherry picked from commit f3daada67f)
5 years ago
Jonathan G Rennison aa10556522 TBTR: Avoid articulated/rear units being added to tile hash
(cherry picked from commit 5a2e498182)
5 years ago
Jonathan G Rennison 2ccb6e1743 TBTR: Fix front engine not being cleared when being replaced. and kept in depot
(cherry picked from commit ee06258629)
5 years ago
Jonathan G Rennison 2557cec6f3 TBTR: Skip virtual vehicles in company rating/value and group stats
(cherry picked from commit 34d7f12a70)
5 years ago
Jonathan G Rennison 835562d81d TBTR: Remove unused function: TemplateReplacement::GetTemplateVehicle
(cherry picked from commit 8afb21cf9c)
5 years ago
Jonathan G Rennison 2e929a88a9 TBTR: Fix incorrect deletion of template vehicles when deleting company
(cherry picked from commit fff3018b42)
5 years ago
Jonathan G Rennison e0578a6e0c TBTR: Show warning on templates which include unavailable vehicles
(cherry picked from commit 6d3e9093c4)
5 years ago
Jonathan G Rennison 324ce7ae96 TBTR: Allow cloning virtual/template trains with unavailable engines
(cherry picked from commit 9d861fb8a0)
5 years ago
Jonathan G Rennison 21faae910b TBTR: Remove duplicated function: SetupTemplateVehicleFromVirtual
(cherry picked from commit c6fa43d767)
5 years ago
Jonathan G Rennison 91c5dee66c Re-add removed group collapse/expand all buttons 5 years ago
Jonathan G Rennison 85e9a0195d TBTR: Avoid leaking virtual trains from template editing window
When pressing OK to convert to template
When (unsuccessfully) selling the head unit
5 years ago
Jonathan G Rennison 8fefef9d19 TBTR: Do not allocate virtual trains a unit number in NormaliseTrainHead 5 years ago
translators 2e23c5ec15 Update: Translations from eints
korean: 1 change by telk5093
5 years ago
peter1138 0db31ae27f Change: Avoid caching end of ship path, to allow penalties to apply. 5 years ago
peter1138 31db4f8d5e Add: Penalty for occupied docking points. 5 years ago
peter1138 ec2656ab7e Codechange: Restrict docking points of docks. 5 years ago
peter1138 f538179878 Feature: Multi-tile docks and docking points. 5 years ago
Jonathan G Rennison 1df56993ea Fix order backups being applied when using buy and refit 5 years ago
translators f1c3915341 Update: Translations from eints
norwegian (bokmal): 25 changes by Leifbk
5 years ago
translators ac610c50a9 Update: Translations from eints
italian: 38 changes by lorenzodv
5 years ago
stormcone 29bdab23f7
Fix: Fix some copy-paste typos. 5 years ago
translators b878891289 Update: Translations from eints
english (us): 38 changes by njn
5 years ago
Jonathan G Rennison d02928c56a Check industry neutral stations_near in CheckCaches 5 years ago
Jonathan G Rennison 92c48d6897 Fix padded tile area being used for industries in FindStationsAroundTiles 5 years ago
Jonathan G Rennison c4d9404d79 Check industry FindStationsAroundTiles in CheckCaches 5 years ago
Jonathan G Rennison c13ee0979f Add industry and station rect coords to NewGRF debug window info 5 years ago
Jonathan G Rennison 601afc56dc Add NewGRF debug window info for stations and industries 5 years ago
translators 7ad9971cf0 Update: Translations from eints
croatian: 3 changes by VoyagerOne
5 years ago
Jonathan G Rennison 5f44741428 Add console commands to show station and industry windows 5 years ago
Jonathan G Rennison ac629c26bb Add logs from desync log call to CheckCaches to ring buffer for next desync 5 years ago
Jonathan G Rennison 84d30e2f97 Fix packet overflow in ClientNetworkGameSocketHandler::SendDesyncLog 5 years ago
Jonathan G Rennison 1d5ba98932 Show time and in game date of game load in desync/crash logs 5 years ago
translators 7f7aba9389 Update: Translations from eints
hungarian: 3 changes by Brumi
5 years ago
translators 00000ef8fa Update: Translations from eints
korean: 3 changes by telk5093
5 years ago
translators 0518ed01b6 Update: Translations from eints
czech: 48 changes by djst
russian: 3 changes by Lone_Wolf
5 years ago
Jonathan G Rennison f3daada67f TBTR: Avoid built virtual wagons which can't be attached being orphaned 5 years ago
Jonathan G Rennison 5a2e498182 TBTR: Avoid articulated/rear units being added to tile hash 5 years ago
translators 45511080b1 Update: Translations from eints
finnish: 3 changes by hpiirai
dutch: 3 changes by JanWillem
bulgarian: 54 changes by zhelyo
french: 3 changes by glx
5 years ago
Jonathan G Rennison 9519c5c1fb Ensure town cargo bitmap correctly set after town creation 5 years ago
Jonathan G Rennison 5e9dd1ff35 Update cache mismatch logging in CheckCaches 5 years ago
Jonathan G Rennison 326dfd33eb Fix town nearby station cache not being updated when house is rebuilt smaller/different shape 5 years ago
Jonathan G Rennison 16e590dc88 Add console command to show town window 5 years ago
iigmir 5b09323a58 Add: Currency: NTD, CNY, HKD 5 years ago
Jonathan G Rennison 751c5229f1 Fix vehicle tile hash not always being immediately updated for aircraft 5 years ago
Jonathan G Rennison 96e5148083 Shorten/extend reservation when adding/removing signals to bridge/tunnel 5 years ago
Jonathan G Rennison c7a9950269 Add game event for train crash 5 years ago
Jonathan G Rennison 49dee941fb Validate cargo packet deferred payments in CheckCaches 5 years ago
Jonathan G Rennison 326b3aa66a Merge branch 'save_ext' into jgrpp 5 years ago
Jonathan G Rennison a298ca41eb Merge branch 'cpp-11' into save_ext 5 years ago
Jonathan G Rennison 43ddaf4c5c Fix incorrect implementation of non-builtin BSWAP64 5 years ago
stormcone 6396ec05fe Fix #7609: In the sprite aligner window the 'Reset relative' button crashes the game.
The 'offs_start_map' is a 'SmallMap', so its own 'Erase' function should be called instead of the underlying vector's 'erase' function.
And fix a "typo". :)
5 years ago
Jonathan G Rennison 98cfcebfcd Merge pull request #91 into jgrpp 5 years ago
glx22 846fc8fe09
Fix: vcpkg used to patch lzma.h to define LZMA_API_STATIC for static builds (#7614) 5 years ago
Jonathan G Rennison 92025b85c9 Fix handling of multi-cargo full load any cargo with through load 5 years ago
TELK 9efa181b58 ko-KR: for 0.31.1 5 years ago
Jonathan G Rennison 83a8de1e49 Add further vehicle flag consistency checks to CheckCaches 5 years ago
Jonathan G Rennison 96f000226e Exclude virtual trains from various vehicle list iterations 5 years ago