diff --git a/editor/studio/AMXX_Studio.dof b/editor/studio/AMXX_Studio.dof index 950d3ab7..f9237f26 100755 --- a/editor/studio/AMXX_Studio.dof +++ b/editor/studio/AMXX_Studio.dof @@ -115,7 +115,7 @@ AutoIncBuild=1 MajorVer=1 MinorVer=3 Release=0 -Build=26 +Build=28 Debug=0 PreRelease=0 Special=0 @@ -126,7 +126,7 @@ CodePage=1252 [Version Info Keys] CompanyName=AMX Mod X Dev Team FileDescription= -FileVersion=1.3.0.26 +FileVersion=1.3.0.28 InternalName= LegalCopyright= LegalTrademarks= diff --git a/editor/studio/AMXX_Studio.exe b/editor/studio/AMXX_Studio.exe index 32e210bb..addcb2fa 100755 Binary files a/editor/studio/AMXX_Studio.exe and b/editor/studio/AMXX_Studio.exe differ diff --git a/editor/studio/AMXX_Studio.res b/editor/studio/AMXX_Studio.res index 418f80ea..6d852288 100755 Binary files a/editor/studio/AMXX_Studio.res and b/editor/studio/AMXX_Studio.res differ diff --git a/editor/studio/UnitMainTools.pas b/editor/studio/UnitMainTools.pas index f54e0a45..6764c7db 100755 --- a/editor/studio/UnitMainTools.pas +++ b/editor/studio/UnitMainTools.pas @@ -1093,8 +1093,8 @@ begin if Count = 0 then Add('', ''); - if (AIndex < Count) then - Activate(AIndex, True, False) + if (AIndex -1 < Count) and (AIndex <> 0) then + Activate(AIndex -1, True, False) else Activate(0, True, False); end; diff --git a/editor/studio/UnitfrmMOTDGen.dfm b/editor/studio/UnitfrmMOTDGen.dfm index a83dd8dd..2f6820dc 100755 Binary files a/editor/studio/UnitfrmMOTDGen.dfm and b/editor/studio/UnitfrmMOTDGen.dfm differ diff --git a/editor/studio/UnitfrmMOTDGen.pas b/editor/studio/UnitfrmMOTDGen.pas index 2f4a354e..4b3f113f 100755 --- a/editor/studio/UnitfrmMOTDGen.pas +++ b/editor/studio/UnitfrmMOTDGen.pas @@ -11,6 +11,7 @@ type txtMOTD: TmxFlatMemo; cmdClose: TSpTBXButton; cmdCopy: TSpTBXButton; + lblLength: TLabel; procedure cmdCopyClick(Sender: TObject); end; diff --git a/editor/studio/UnitfrmMain.pas b/editor/studio/UnitfrmMain.pas index 851b1b79..bb963177 100755 --- a/editor/studio/UnitfrmMain.pas +++ b/editor/studio/UnitfrmMain.pas @@ -1489,7 +1489,7 @@ begin else eRoot.Expand(False); { Other Projects } - eRoot := frmClose.trvFiles.Items.Add(nil, tsMain.Items[1].Caption); + eRoot := frmClose.trvFiles.Items.Add(nil, tsMain.Items[2].Caption); for i := 0 to OtherProjects.Count - 1 do begin if TDocument(OtherProjects.Items[i]).Modified then frmClose.trvFiles.Items.AddChild(eRoot, IntToStr(i + 1) + '. ' + ExtractFileName(TDocument(OtherProjects.Items[i]).FileName)); @@ -1992,6 +1992,7 @@ begin eStr[i] := '"' + eStr[i] + '^n" +'; end; frmMOTDGen.txtMOTD.Lines.Assign(eStr); + frmMOTDGen.lblLength.Caption := 'Length: ' + IntToStr(Length(eStr.Text)); eStr.Destroy; frmMOTDGen.ShowModal;