mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
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.
This commit is contained in:
parent
46c17052c6
commit
0fb37352ce
2 changed files with 2 additions and 4 deletions
|
@ -2228,7 +2228,7 @@ void entityclass::createentity( float xp, float yp, int t, float vx /*= 0*/, flo
|
||||||
entities.push_back(entity);
|
entities.push_back(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool entityclass::updateentities( int i )
|
void entityclass::updateentities( int i )
|
||||||
{
|
{
|
||||||
if(entities[i].statedelay<=0)
|
if(entities[i].statedelay<=0)
|
||||||
{
|
{
|
||||||
|
@ -3388,8 +3388,6 @@ bool entityclass::updateentities( int i )
|
||||||
entities[i].statedelay = 0;
|
entities[i].statedelay = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void entityclass::animateentities( int _i )
|
void entityclass::animateentities( int _i )
|
||||||
|
|
|
@ -87,7 +87,7 @@ public:
|
||||||
void createentity(float xp, float yp, int t, float vx = 0, float vy = 0,
|
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 );
|
int p1 = 0, int p2 = 0, int p3 = 320, int p4 = 240 );
|
||||||
|
|
||||||
bool updateentities(int i);
|
void updateentities(int i);
|
||||||
|
|
||||||
void animateentities(int i);
|
void animateentities(int i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue