Debug: Change sprite group indentation handling

This commit is contained in:
Jonathan G Rennison
2022-08-09 21:53:43 +01:00
parent 41f2e92f5c
commit 9ed5b6e65c
5 changed files with 66 additions and 50 deletions

View File

@@ -569,7 +569,7 @@ struct NewGRFInspectWindow : Window {
collapse_lines = 0;
}
if (operation == DSGPO_END && collapsed && collapse_group == group) {
seprintf(tmp_buf, lastof(tmp_buf), "%*sCOLLAPSED: %u lines omitted", highlight_tag + 2, "", collapse_lines);
seprintf(tmp_buf, lastof(tmp_buf), "%sCOLLAPSED: %u lines omitted", buf, collapse_lines);
buf = tmp_buf;
collapsed = false;
highlight_tag = 0;