Commit Graph

48463 Commits

Author SHA1 Message Date
Jonathan G Rennison
e1783be6d1 NewGRF debug window: Add a subset of house properties 2019-10-27 11:11:12 +00:00
Jonathan G Rennison
5bf52ab736 SDL2: Fix Home and End keys not working in text editing contexts 2019-10-25 23:26:17 +01:00
Jonathan G Rennison
a8657f4c40 Version: Committing version data for tag: jgrpp-0.32.1 2019-10-20 19:15:06 +01:00
Jonathan G Rennison
a7be39d07a Documentation: Update low level changes document 2019-10-20 19:13:17 +01:00
Jonathan G Rennison
c4d22226d1 Error window: Fix "undefined string" appearing in 3rd line
Caused by bad merge resolution with 71a3e834
2019-10-20 10:26:49 +01:00
Jonathan G Rennison
299becbb2f SDL2: Fix up/down keys in console window 2019-10-20 08:26:41 +01:00
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
2019-10-20 07:46:21 +01:00
Jonathan G Rennison
115af44f3a Configure: Further improvements to filtering of CONFIGURE_DEFINES 2019-10-15 18:13:38 +01:00
Jonathan G Rennison
a50d82775f Configure: Escape special chars when inserting configure invocation/defines into rev.cpp 2019-10-14 22:17:44 +01:00
Jonathan G Rennison
93dffed00a Configure: Bump minimum sdl2 version to 2.0.5
See: #109
2019-10-14 19:04:26 +01:00
Jonathan G Rennison
c45d963b0f configure: Add micro version support to check_version 2019-10-14 18:51:25 +01:00
Jonathan G Rennison
67a725e813 SDL2: Handle Fcitx keypresses which do not generate an SDL_KEYDOWN 2019-10-13 14:40:12 +01:00
Jonathan G Rennison
2deadabc97 Saveload: Improve SpringPP savegame detection
Trunk savegames will soon reach the range of versions used by SpringPP
2019-10-13 13:03:12 +01:00
Jonathan G Rennison
f3df140f2b Configure: Disable fcitx support if sdl2 not present 2019-10-13 10:27:12 +01:00
Jonathan G Rennison
f479559a4e Configure: Detect SD1 is SDL2 detection fails
Do not force SDL2 is sdl2-config is present

See #107
2019-10-13 10:19:38 +01:00
Jonathan G Rennison
3c18e81e0d
Merge pull request #104 from telk5093/jgrpp
ko-KR: Update translation
2019-10-13 09:57:56 +01:00
TELK
6eef6ac8d5 ko-KR: Update translation for 0.32.0 2019-10-12 22:10:53 +09:00
Jonathan G Rennison
52dd75589a TBTR: Fix width of bottom row of create/edit template window
See #105
2019-10-12 11:28:02 +01:00
Jonathan G Rennison
87acac9700 SDL2: Fix handling of shift key in edit context 2019-10-12 11:20:23 +01:00
Jonathan G Rennison
18d51ccb80 Fix compilation on MSVC 2019-10-12 10:22:53 +01:00
Jonathan G Rennison
0876bca9b7 Version: Committing version data for tag: jgrpp-0.32.0 2019-10-12 01:23:51 +01:00
Jonathan G Rennison
1bbfd69657 Bump tracerestrict version due to 7332c0b6 2019-10-12 01:23:06 +01:00
Jonathan G Rennison
2ba5b2531e Fix compilation on MinGW 2019-10-12 01:17:41 +01:00
Jonathan G Rennison
03fbe87752 Merge branch 'master' into jgrpp 2019-10-12 00:56:56 +01:00
Jonathan G Rennison
29ed470e04 Fcitx: Fix edge cases around text handling and setup 2019-10-12 00:39:56 +01:00
Jonathan G Rennison
641b008374 Build: Add configure defines to detailed version output 2019-10-11 11:16:50 +01:00
Jonathan G Rennison
248b5455cd Configure: Remove unused CUSTOM_ALLOCATOR define 2019-10-11 19:13:04 +01:00
Jonathan G Rennison
24b5cb0fdb IME: Add direct support for Fcitx IME input, with SDL2 on *nix/X11. 2019-10-11 01:25:45 +01:00
Jonathan G Rennison
91e05f6306 Fix 0472327e: Infinite loop on copying unset scheduled dispatch
Fixes: #103
2019-10-10 09:10:24 +01:00
translators
e2e112baaa Update: Translations from eints
chinese (traditional): 1 change by firetimer
chinese (simplified): 66 changes by firetimer
2019-10-08 19:45:39 +02:00
Jonathan G Rennison
7332c0b673 Tracerestrict: Add load percentage conditional 2019-10-08 18:42:18 +01:00
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.
2019-10-08 12:51:15 +02:00
Gabda
652fb40652 Codechange: Performance improvement in k-d tree FindNearest() 2019-10-08 08:53:19 +02:00
Jonathan G Rennison
34a6f3c72a Fix text input when not in edit box mode, fix backtick handling 2019-10-08 02:28:09 +01:00
Jonathan G Rennison
5d1578bb7f Fix IME positioning with SDL2 2019-10-08 01:44:18 +01:00
Jonathan G Rennison
400f75bafb Add IME related info on SDL2 to CrashLog::LogLibraries 2019-10-08 01:08:14 +01:00
stormcone
1e5029563c Fix #7635: Game crash on exit scenario editor. 2019-10-08 00:21:18 +01:00
Jonathan G Rennison
6c21c93192 Add command line switch -Z to write detailed version information 2019-10-08 00:05:44 +01:00
Jonathan G Rennison
3b178b6f07 Scheduled dispatch: Add order backup support 2019-10-07 21:22:31 +01:00
Jonathan G Rennison
0472327ef1 Scheduled dispatch: Simplify schedule copying 2019-10-07 21:21:43 +01:00
Jonathan G Rennison
ef4055a7dc Scheduled dispatch: Mark read accessers as const 2019-10-07 20:50:19 +01:00
Joe Stringer
48fd7b2792 Fix: [MINGW32] Fix launch on Windows 7 x64
Prior to this commit, the following is observed when running openttd.exe
that was compiled using mingw32 on x86_64:

> The procedure entry point ScriptBreak could not be located in the
  dynamic link library GDI32.dll

The MSDN docs at the below link state that modules using Uniscribe must
first link against usp10 before gdi32 to avoid this issue:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd319118(v=vs.85).aspx

Signed-off-by: Joe Stringer <joe@wand.net.nz>
2019-10-07 21:36:00 +02:00
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>
2019-10-07 21:36:00 +02:00
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>
2019-10-07 21:36:00 +02:00
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>
2019-10-07 21:36:00 +02:00
Jonathan G Rennison
94761b3fcd Fix order backup not saving/restoring timetable automate/separation state 2019-10-07 20:19:13 +01:00
Jonathan G Rennison
3e8b091913 Linkgraph: MCF: Skip source node Dijkstra when all demand satisfied 2019-10-06 17:55:04 +01:00
Michael Lutz
dd11990ce0 Fix 71a3e8346: strings need to be copied too.
If it's not, iterating on it in a loop is quite pointless.
2019-10-06 18:24:30 +02:00
Jonathan G Rennison
04cf7d5500 Fix modifier key window not always updating 2019-10-06 05:21:16 +01:00
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
2019-10-06 04:57:38 +01:00