diff --git a/editor/studio/AMXX_Studio.exe b/editor/studio/AMXX_Studio.exe index 89568e0b..18c1e33a 100755 Binary files a/editor/studio/AMXX_Studio.exe and b/editor/studio/AMXX_Studio.exe differ diff --git a/editor/studio/UnitCodeUtils.pas b/editor/studio/UnitCodeUtils.pas index 2930db9e..d963097e 100755 --- a/editor/studio/UnitCodeUtils.pas +++ b/editor/studio/UnitCodeUtils.pas @@ -176,7 +176,7 @@ begin eTempIndent := eTempIndent +1; end; end - else if (eStr[i] = 'else') or (Pos('else if', eStr[i]) = 1) and (Pos('{', eStr[i]) = 0) then + else if (eStr[i] = 'else') or ((Pos('else if', eStr[i]) = 1) or (Pos('case', eStr[i]) = 1) or (Pos('switch', eStr[i]) = 1)) and (Pos('{', eStr[i]) = 0) then eTempIndent := eTempIndent +1 else if (Pos('{', eStr[i]) = 0) and (Length(eStr[i]) > 6) then begin if (IsAtStart('stock', eStr[i], False)) or (IsAtStart('while', eStr[i], True)) then begin