diff -r 039ceb443aca -r 8d7c52b24e28 hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Sun Dec 16 18:50:00 2012 +0100 +++ b/hedgewars/hwengine.pas Mon Dec 17 00:18:18 2012 +0100 @@ -581,27 +581,21 @@ end {$ENDIF}; - if (ParamCount < 2) then + UserPathPrefix := '.'; + PathPrefix := cDefaultPathPrefix; + recordFileName := ''; + startIndex := 1; + playReplayFileWithParameters(startIndex); + + if (recordFileName = '') then begin DisplayUsage(); GameType:= gmtSyntax; - end - else - begin - if (ParamCount >= 2) then - begin - UserPathPrefix := '.'; - PathPrefix := ParamStr(1); - recordFileName := ParamStr(2); - startIndex := 3; - end; - - playReplayFileWithParameters(startIndex); end; (* - WriteLn(stdout,recordFilename); - WriteLn(stdout,PathPrefix); - WriteLn(stdout,UserPathPrefix); + WriteLn(stdout,'PathPrefix: ' + PathPrefix); + WriteLn(stdout,'UserPathPrefix: ' + UserPathPrefix); + WriteLn(stdout,'recordFilename: ' + recordFilename); *) end;