1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

Re-add fixed bool

Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
Ally 2023-09-09 22:13:26 -03:00 committed by Misa Elizabeth Kai
parent a72966426b
commit 811d2bdcf6

View file

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