From 08971b3311a958d9c5e6f2e06ba1819737d740d4 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 7 Sep 2020 21:17:01 -0700 Subject: [PATCH] Fix destroy(platforms), implement under different names destroy(platforms) has been bugged since 2.0. The problem with it is that it removes the platform entity, but doesn't remove its block. This results in essentially turning the platorm invisible and stopping it from moving. This error should be fixed, but some levels (including my own) rely on the invisible platform trick. So instead, the fixed version will be implemented under a different name, destroy(moving). There's also another problem with destroy(platforms), which is that the name is misleading and it doesn't additionally destroy disappearing platforms. I would also fix this, but in order to not run the risk of breakage, it will have to be implemented under a different name, too. So this will be destroy(disappear). As an added benefit, it's also more granular to have platform-destroying functions under different names than it is to consolidate them under the same name. --- desktop_version/src/Script.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 7989ccf3..b9b88151 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -187,10 +187,17 @@ void scriptclass::run(void) for(size_t edi=0; edi