mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
(svn r19875) [1.0] -Backport from trunk:
- Fix: NetBSD compilation was still broken in some cases [FS#3845] (r19874, r19859) - Fix: If the (guessed initial) destination tile of a road vehicle was not a road stop but was a T-junction or turn, the road vehicles would jump around in circles [FS#3817] (r19873) - Fix: When a network connection gets lost and a game with AIs was loaded the client might crash due to the AIs not being loaded while the game loop is executed [FS#3819] (r19869) - Fix: Use non-breaking spaces for currency pre-/postfixes (r19867) - Fix: Crash when changing/viewing locale settings in the console [FS#3830] (r19865, r19864, r19863, r19862)
This commit is contained in:
+2
-2
@@ -397,7 +397,7 @@ size_t Utf8TrimString(char *s, size_t maxlen)
|
||||
return length;
|
||||
}
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#ifdef DEFINE_STRNDUP
|
||||
#include "core/math_func.hpp"
|
||||
char *strndup(const char *s, size_t len)
|
||||
{
|
||||
@@ -406,7 +406,7 @@ char *strndup(const char *s, size_t len)
|
||||
memcpy(tmp, s, len);
|
||||
return tmp;
|
||||
}
|
||||
#endif /* !_GNU_SOURCE */
|
||||
#endif /* DEFINE_STRNDUP */
|
||||
|
||||
#ifdef DEFINE_STRCASESTR
|
||||
char *strcasestr(const char *haystack, const char *needle)
|
||||
|
||||
Reference in New Issue
Block a user