From 811d2bdcf64f4e485f5cdc2cfa78281c230d78a4 Mon Sep 17 00:00:00 2001 From: Ally Date: Sat, 9 Sep 2023 22:13:26 -0300 Subject: [PATCH] Re-add `fixed` bool Co-authored-by: Misa Elizabeth Kai --- desktop_version/src/Script.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index bf29a058..e6781461 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -290,11 +290,13 @@ void scriptclass::run(void) } else if (words[1] == "platforms" || words[1] == "moving") { + const bool fixed = words[1] == "moving"; + for (size_t edi = 0; edi < obj.entities.size(); edi++) { if (obj.entities[edi].rule == 2 && obj.entities[edi].animate == 100) { - if (words[1] == "moving") + if (fixed) { obj.disableblockat(obj.entities[edi].xp, obj.entities[edi].yp); }