X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=1d1d2ce5da316808b4db68c1e3fb168ed1ac12f8;hb=53ee9bbf75ec69253d01f1b073ab2a82476cea7e;hp=5a246b11eaa79571b8954d2eabd6a3ac94ab501b;hpb=7105f91988f424587dd22f78f4d9c56b108e82e6;p=d2df-editor.git diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 5a246b1..1d1d2ce 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -2651,6 +2651,10 @@ begin EditorDir := ExtractFilePath(Application.ExeName); e_InitLog(EditorDir+'Editor.log', WM_NEWFILE); + e_WriteLog('Doom 2D: Forever Editor version ' + EDITOR_VERSION, MSG_NOTIFY); + e_WriteLog('Build date: ' + EDITOR_BUILDDATE + ' ' + EDITOR_BUILDTIME, MSG_NOTIFY); + e_WriteLog('Build hash: ' + g_GetBuildHash(), MSG_NOTIFY); + e_WriteLog('Build by: ' + g_GetBuilderName(), MSG_NOTIFY); slInvalidTextures := TStringList.Create; @@ -5151,7 +5155,7 @@ begin if vleObjectProperty.Values[_lc[I_PROP_TR_MUSIC_ACT]] = _lc[I_PROP_TR_MUSIC_ON] then Data.MusicAction := 1 else - Data.MusicAction := 2; + Data.MusicAction := 0; end; TRIGGER_PUSH: @@ -6728,7 +6732,7 @@ end; procedure TMainForm.miTestMapClick(Sender: TObject); var - newWAD, oldWAD, tempMap: String; + newWAD, oldWAD, tempMap, ext: String; args: SSArray; opt: LongWord; time, i: Integer; @@ -6738,14 +6742,19 @@ begin // Сохраняем временную карту: time := 0; repeat - newWAD := ExtractFilePath(TestD2dExe) + Format('maps/temp%.4d.wad', [time]); + newWAD := ExtractFilePath(TestD2dExe) + Format('maps/temp%.4d', [time]); Inc(time); until not FileExists(newWAD); if OpenedMap <> '' then begin oldWad := g_ExtractWadName(OpenedMap); + newWad := newWad + ExtractFileExt(oldWad); if CopyFile(oldWad, newWad) = false then e_WriteLog('MapTest: unable to copy [' + oldWad + '] to [' + newWad + ']', MSG_WARNING) + end + else + begin + newWad := newWad + '.wad' end; tempMap := newWAD + ':\' + TEST_MAP_NAME; SaveMap(tempMap);