mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 18:28:03 +01:00
(svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved).
This commit is contained in:
parent
50b2088674
commit
534db3cf08
@ -158,9 +158,6 @@ void ShowOSErrorBox(const unsigned char *buf)
|
|||||||
|
|
||||||
int CDECL main(int argc, char* argv[])
|
int CDECL main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
// change the working directory to enable doubleclicking in UIs
|
|
||||||
ChangeWorkingDirectory(argv[0]);
|
|
||||||
|
|
||||||
_random_seeds[1][1] = _random_seeds[1][0] = _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
|
_random_seeds[1][1] = _random_seeds[1][0] = _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
|
||||||
|
|
||||||
return ttd_main(argc, argv);
|
return ttd_main(argc, argv);
|
||||||
|
@ -14,10 +14,6 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#ifdef USE_HOMEDIR
|
|
||||||
#include <pwd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)
|
#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)
|
||||||
#define HAS_STATVFS
|
#define HAS_STATVFS
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user