diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index cc1b3b7b..1d2eab1f 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -4473,7 +4473,7 @@ bool entityclass::testwallsx( int t, int tx, int ty, const bool skipdirblocks ) return true; } -bool entityclass::testwallsy( int t, float tx, float ty ) +bool entityclass::testwallsy( int t, int tx, int ty ) { if (!INBOUNDS_VEC(t, entities)) { @@ -4482,8 +4482,8 @@ bool entityclass::testwallsy( int t, float tx, float ty ) } SDL_Rect temprect; - temprect.x = static_cast(tx) + entities[t].cx; - temprect.y = static_cast(ty) + entities[t].cy; + temprect.x = tx + entities[t].cx; + temprect.y = ty + entities[t].cy; temprect.w = entities[t].w; temprect.h = entities[t].h; diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index da53174b..75b068a1 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -155,7 +155,7 @@ public: bool testwallsx(int t, int tx, int ty, bool skipdirblocks); - bool testwallsy(int t, float tx, float ty); + bool testwallsy(int t, int tx, int ty); void applyfriction(int t, float xrate, float yrate);