diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index ee8c2397..c6ce67e3 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -14,6 +14,11 @@ #include "Vlogging.h" #include "Xoshiro.h" +static int getgridpoint( int t ) +{ + return t / 8; +} + bool entityclass::checktowerspikes(int t) { if (map.invincibility) @@ -4094,11 +4099,6 @@ int entityclass::checkactivity(void) return -1; } -int entityclass::getgridpoint( int t ) -{ - return t / 8; -} - bool entityclass::checkplatform(const SDL_Rect& temprect, int* px, int* py) { //Return true if rectset intersects a moving platform, setups px & py to the platform x & y diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index 986f7ebc..0c7ffe2a 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -119,8 +119,6 @@ public: int checkactivity(void); - int getgridpoint(int t); - bool checkplatform(const SDL_Rect& temprect, int* px, int* py); bool checkblocks(const SDL_Rect& temprect, float dx, float dy, int dr, bool skipdirblocks);