From b4a0acc01df28b220856de5df4f39d0a4129d659 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 5 Oct 2020 22:53:10 -0700 Subject: [PATCH] Fix onground/onroof taking 1 frame after landing on vertical plat So, 77a636509bf3b2a429f18bcae0615b898aa7321b fixed the fact that you only got 1 frame of onground/onroof when standing on a vertical moving platform, but removing those lines entirely means that it takes 1 frame before the onground/onroof of 2 actually takes effect. This desyncs my Nova TAS, so it seems important to fix. --- desktop_version/src/Entity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index b3dc641e..d227343e 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -4473,11 +4473,13 @@ void entityclass::movingplatformfix( int t, int j ) { entities[j].yp = entities[t].yp + entities[t].h; entities[j].vy = 0; + entities[j].onroof = 2; } else { entities[j].yp = entities[t].yp - entities[j].h-entities[j].cy; entities[j].vy = 0; + entities[j].onground = 2; } } else