mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove unused function entityclass::gettype()
Not sure why this function is here. It makes sense if you know that the game will only do certain moving platform things if you already have a moving platform in the room, however apparently this function has absolutely nothing to do with it.
This commit is contained in:
@@ -3753,20 +3753,6 @@ void entityclass::animateentities( int _i )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool entityclass::gettype( int t )
|
|
||||||
{
|
|
||||||
//Returns true is there is an entity of type t onscreen
|
|
||||||
for (size_t i = 0; i < entities.size(); i++)
|
|
||||||
{
|
|
||||||
if(entities[i].type==t)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
int entityclass::getcompanion()
|
int entityclass::getcompanion()
|
||||||
{
|
{
|
||||||
//Returns the index of the companion with rule t
|
//Returns the index of the companion with rule t
|
||||||
|
|||||||
@@ -91,8 +91,6 @@ public:
|
|||||||
|
|
||||||
void animateentities(int i);
|
void animateentities(int i);
|
||||||
|
|
||||||
bool gettype(int t);
|
|
||||||
|
|
||||||
int getcompanion();
|
int getcompanion();
|
||||||
|
|
||||||
int getplayer();
|
int getplayer();
|
||||||
|
|||||||
Reference in New Issue
Block a user