diff --git a/editor/studio/AMXX_Studio.dof b/editor/studio/AMXX_Studio.dof index b56003e0..72a8b220 100755 --- a/editor/studio/AMXX_Studio.dof +++ b/editor/studio/AMXX_Studio.dof @@ -115,7 +115,7 @@ AutoIncBuild=1 MajorVer=1 MinorVer=4 Release=2 -Build=9 +Build=10 Debug=0 PreRelease=0 Special=0 @@ -126,7 +126,7 @@ CodePage=1252 [Version Info Keys] CompanyName=AMX Mod X Dev Team FileDescription= -FileVersion=1.4.2.9 +FileVersion=1.4.2.10 InternalName=gaben LegalCopyright=AMX Mod X Dev Team LegalTrademarks= diff --git a/editor/studio/AMXX_Studio.exe b/editor/studio/AMXX_Studio.exe index e79d45ac..a003dc03 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 652f8d4b..c582e807 100755 Binary files a/editor/studio/AMXX_Studio.res and b/editor/studio/AMXX_Studio.res differ diff --git a/editor/studio/UnitCodeUtils.pas b/editor/studio/UnitCodeUtils.pas index 50e13838..27b52148 100755 --- a/editor/studio/UnitCodeUtils.pas +++ b/editor/studio/UnitCodeUtils.pas @@ -213,6 +213,8 @@ begin if CountChars(eStr[i], '{') <> CountChars(eStr[i], '}') then eIndent := eIndent + CountChars(eStr[i], '{'); + if (i+1 < eStr.Count) and (Trim(RemoveStringsAndComments(eStr[i +1], true, true)) = '{') then + eTempIndent := eTempIndent -1; frmMain.pbLoading.Position := frmMain.sciEditor.Lines.Count + i -1; SetProgressStatus('Indenting Code...');