From db59da23b2e8f0c347155a91eaf942ca379f98d5 Mon Sep 17 00:00:00 2001
From: jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>
Date: Tue, 19 Feb 2008 01:02:12 +0000
Subject: fixed bug when compiling with  --enable-dev-build thanks  kdub / tobi
 ...

sorry gusy, my bad :(

git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@860 b956fd51-792f-4845-bead-9b4dfca2ff2c
---
 Game/Code/Classes/UPlatformLinux.pas | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

(limited to 'Game/Code')

diff --git a/Game/Code/Classes/UPlatformLinux.pas b/Game/Code/Classes/UPlatformLinux.pas
index b005c8d9..b3c78a10 100644
--- a/Game/Code/Classes/UPlatformLinux.pas
+++ b/Game/Code/Classes/UPlatformLinux.pas
@@ -136,16 +136,19 @@ end;
 function TPlatformLinux.GetLogPath        : WideString;
 begin
   if FindCmdLineSwitch( cUseLocalPaths ) then
-    result := ExtractFilePath(ParamStr(0))
-  else
-{$IFDEF UseLocalDirs}
+  begin
     result := ExtractFilePath(ParamStr(0));
-{$ELSE}
-    result := LogPath+'/';
-{$ENDIF}
-
-   forcedirectories( result );
+  end
+  else
+  begin
+    {$IFDEF UseLocalDirs}
+      result := ExtractFilePath(ParamStr(0));
+    {$ELSE}
+      result := LogPath+'/';
+    {$ENDIF}
+  end;
 
+  forcedirectories( result );
 end;
 
 function TPlatformLinux.GetGameSharedPath : WideString;
-- 
cgit v1.2.3