X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=2216151be62ac733692ba26562c2dfebd06c9a35;hb=66487b9264a791df057975695339448eb3d7ba2f;hp=061e916d2f490781327162979ad7a5c8b329df6d;hpb=aeade63897b65c2dfeb19eb423c55ff2660069a2;p=d2df-editor.git diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 061e916..2216151 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -1795,6 +1795,7 @@ procedure FullClear(); begin RemoveSelectFromObjects(); ClearMap(); + LoadSky(gMapInfo.SkyName); UndoBuffer := nil; slInvalidTextures.Clear(); MapCheckForm.lbErrorList.Clear(); @@ -4032,10 +4033,13 @@ var begin config := TConfig.CreateFile(EditorDir+'Editor.cfg'); - config.WriteInt('Editor', 'XPos', Left); - config.WriteInt('Editor', 'YPos', Top); - config.WriteInt('Editor', 'Width', Width); - config.WriteInt('Editor', 'Height', Height); + if WindowState <> wsMaximized then + begin + config.WriteInt('Editor', 'XPos', Left); + config.WriteInt('Editor', 'YPos', Top); + config.WriteInt('Editor', 'Width', Width); + config.WriteInt('Editor', 'Height', Height); + end; config.WriteBool('Editor', 'Maximize', WindowState = wsMaximized); config.WriteBool('Editor', 'Minimap', ShowMap); config.WriteInt('Editor', 'PanelProps', PanelProps.ClientWidth); @@ -6244,7 +6248,6 @@ var cmd, mapWAD, mapToRun: String; opt: LongWord; time: Integer; - lpMsgBuf: PChar; begin // Сохраняем временную карту: time := 0;