From e8084fe6991d0a574a5e82b6ffaf1b3504adf98c Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 9 Oct 2020 17:09:32 -0700 Subject: [PATCH] Remove now-unused entityclass::hormovingplatformfix() This function is no longer used after I removed it in favor of using `entityclass::moveblockto()`. --- desktop_version/src/Entity.cpp | 13 ------------- desktop_version/src/Entity.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 9d43985e..b63f219c 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -4523,19 +4523,6 @@ void entityclass::movingplatformfix( int t, int j ) } } -void entityclass::hormovingplatformfix( int t ) -{ - if (!INBOUNDS_VEC(t, entities)) - { - puts("hormovingplatformfix() out-of-bounds!"); - return; - } - - //If this intersects the player, then we move the player along it - //for horizontal platforms, this is simplier - createblock(0, entities[t].xp, entities[t].yp, entities[t].w, entities[t].h); -} - void entityclass::customwarplinecheck(int i) { if (!INBOUNDS_VEC(i, entities)) { diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index 9b44cec9..a6ebdafa 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -168,8 +168,6 @@ public: void movingplatformfix(int t, int j); - void hormovingplatformfix(int t); - void entitycollisioncheck(); void collisioncheck(int i, int j, bool scm = false);