hedgewars/hwengine.pas
branchflibqtfrontend
changeset 8304 620560c89284
parent 8278 9cdfcb5b7ddd
parent 8302 a7934cd12469
child 8363 0b4ac686fc44
--- a/hedgewars/hwengine.pas	Sun Dec 16 12:05:32 2012 +0400
+++ b/hedgewars/hwengine.pas	Sun Dec 16 12:25:13 2012 +0400
@@ -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;