From 52918ba510c03970551a52dcd828197bd2fe095c Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 22 Aug 2021 20:39:05 -0700 Subject: [PATCH] Increment total flips for flip tokens and flipgravity(player) They flip the player, they should count towards total flips like gravity lines do. --- desktop_version/src/Entity.cpp | 1 + desktop_version/src/Script.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index a9cd394d..efa6c3cc 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -2606,6 +2606,7 @@ bool entityclass::updateentities( int i ) if (entities[i].state == 1) { game.gravitycontrol = (game.gravitycontrol + 1) % 2; + ++game.totalflips; return disableentity(i); } diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 310a3be7..7f2d9273 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -1006,6 +1006,7 @@ void scriptclass::run(void) if (words[1] == "player") { game.gravitycontrol = !game.gravitycontrol; + ++game.totalflips; } else {