From babcadc99f0f4c172f239fef4a65b9df12df1483 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 11 Dec 2022 10:52:12 -0800 Subject: [PATCH] Remove unnecessary `const`s from `Entity.h` `const`s don't mean anything in a prototype declaration unless it's a pointer or a reference. Remove them to make the header a bit more readable. --- desktop_version/src/Entity.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index ea11e1c2..b4de884d 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -98,7 +98,7 @@ public: void animateentities(int i); - void animatehumanoidcollision(const int i); + void animatehumanoidcollision(int i); int getcompanion(void); @@ -125,14 +125,14 @@ public: bool checkplatform(const SDL_Rect& temprect, int* px, int* py); - bool checkblocks(const SDL_Rect& temprect, const float dx, const float dy, const float dr, const bool skipdirblocks); + bool checkblocks(const SDL_Rect& temprect, float dx, float dy, float dr, bool skipdirblocks); bool checktowerspikes(int t); - bool checkwall(const bool invincible, const SDL_Rect& temprect, const float dx, const float dy, const float dr, const bool skipblocks, const bool skipdirblocks); - bool checkwall(const bool invincible, const SDL_Rect& temprect); + bool checkwall(bool invincible, const SDL_Rect& temprect, float dx, float dy, float dr, bool skipblocks, bool skipdirblocks); + bool checkwall(bool invincible, const SDL_Rect& temprect); - float hplatformat(const int px, const int py); + float hplatformat(int px, int py); int yline(int a, int b); @@ -153,7 +153,7 @@ public: bool entitycollideroof(int t); - bool testwallsx(int t, int tx, int ty, const bool skipdirblocks); + bool testwallsx(int t, int tx, int ty, bool skipdirblocks); bool testwallsy(int t, float tx, float ty);