changeset 6318:5b0b9daba999 draft

(svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved).
author rubidium <rubidium@openttd.org>
date Sat, 17 Mar 2007 14:15:21 +0000
parents d5d3f3379eb0
children 1af654d8481c
files src/os2.cpp src/unix.cpp
diffstat 2 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/os2.cpp
+++ b/src/os2.cpp
@@ -158,9 +158,6 @@
 
 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);
--- 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