From 0fb37352cee51ff83a574aec423c72708897d814 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 3 Apr 2020 14:36:04 -0700 Subject: [PATCH] Make entityclass::updateentities() no longer a bool It always returns true anyway, so why bother? And it doesn't look like any code uses its return value, anyway. --- desktop_version/src/Entity.cpp | 4 +--- desktop_version/src/Entity.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 6c22af08..cabdac71 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -2228,7 +2228,7 @@ void entityclass::createentity( float xp, float yp, int t, float vx /*= 0*/, flo entities.push_back(entity); } -bool entityclass::updateentities( int i ) +void entityclass::updateentities( int i ) { if(entities[i].statedelay<=0) { @@ -3388,8 +3388,6 @@ bool entityclass::updateentities( int i ) entities[i].statedelay = 0; } } - - return true; } void entityclass::animateentities( int _i ) diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index 7a06726f..6e57585d 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -87,7 +87,7 @@ public: void createentity(float xp, float yp, int t, float vx = 0, float vy = 0, int p1 = 0, int p2 = 0, int p3 = 320, int p4 = 240 ); - bool updateentities(int i); + void updateentities(int i); void animateentities(int i);