diff options
author | rubidium <rubidium@openttd.org> | 2007-03-17 14:15:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-17 14:15:21 +0000 |
commit | 534db3cf08798994defe8c6334ccfc3e8cafd4f1 (patch) | |
tree | 5e02cb2f6eb813b1f2bcf74117acfa87d5e4de15 /src | |
parent | 50b2088674b5835aaab3985d7dcc7473c1a3b08c (diff) | |
download | openttd-534db3cf08798994defe8c6334ccfc3e8cafd4f1.tar.xz |
(svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved).
Diffstat (limited to 'src')
-rw-r--r-- | src/os2.cpp | 3 | ||||
-rw-r--r-- | src/unix.cpp | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/os2.cpp b/src/os2.cpp index 25b82a36c..cc252a5c6 100644 --- a/src/os2.cpp +++ b/src/os2.cpp @@ -158,9 +158,6 @@ void ShowOSErrorBox(const unsigned char *buf) 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); return ttd_main(argc, argv); diff --git a/src/unix.cpp b/src/unix.cpp index eebf4c2d2..ddcd3aa57 100644 --- a/src/unix.cpp +++ b/src/unix.cpp @@ -14,10 +14,6 @@ #include <time.h> #include <signal.h> -#ifdef USE_HOMEDIR -#include <pwd.h> -#endif - #if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__) #define HAS_STATVFS #endif |