hedgewars/hwengine.pas
changeset 8302 a7934cd12469
parent 8225 186229af4fc1
child 8304 620560c89284
child 8307 8d7c52b24e28
--- a/hedgewars/hwengine.pas	Sat Dec 15 23:00:07 2012 +0100
+++ b/hedgewars/hwengine.pas	Sun Dec 16 01:25:11 2012 +0100
@@ -590,21 +590,11 @@
         begin
         if (ParamCount >= 2) then
             begin
-            UserPathPrefix := ParamStr(1);
-            PathPrefix     := ParamStr(2);
-            end;
-        if (ParamCount >= 3) then
-            recordFilename := ParamStr(3);
-        if (ParamCount = 2) or
-           ((ParamCount >= 3) and (Copy(recordFileName,1,2) = '--')) then
-            begin
             UserPathPrefix := '.';
             PathPrefix     := ParamStr(1);
             recordFileName := ParamStr(2);
             startIndex     := 3;
-            end
-        else
-            startIndex := 4;
+            end;
 
         playReplayFileWithParameters(startIndex);
         end;