From 1c6cfcd2a5492548434d848f3593fced1d83f2c3 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 23 Jan 2024 16:53:01 -0800 Subject: [PATCH] Remove 'all' argument from setrtl It doesn't make sense to change the alignment of all existing text boxes when you're not otherwise able to mutate the text. Whereas the point of the 'all' argument in setfont is to be able to animate text boxes using fonts. --- desktop_version/src/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 0939503b..3ae333ca 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -2510,7 +2510,7 @@ void scriptclass::run(void) { font::set_level_font(raw_words[1].c_str()); } - if (argexists[2] && words[2] == "all") + if (words[0] == "setfont" && argexists[2] && words[2] == "all") { /* Immediately update all text boxes. */ uint32_t flags = PR_FONT_IDX(font::font_idx_level, cl.rtl);