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.
This commit is contained in:
Misa 2024-01-23 16:53:01 -08:00
parent a9f0d81804
commit 1c6cfcd2a5
1 changed files with 1 additions and 1 deletions

View File

@ -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);