mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Remove unused function entityclass::checkdirectional()
This function is never used anywhere in the game.
This commit is contained in:
parent
6a28c5de30
commit
4f318e1ee1
2 changed files with 0 additions and 30 deletions
|
@ -4465,34 +4465,6 @@ bool entityclass::entitycollide( int a, int b )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool entityclass::checkdirectional( int t )
|
|
||||||
{
|
|
||||||
//Returns true if player entity (rule 0) moving in dir t through directional block
|
|
||||||
for(int i=0; i < nentity; i++)
|
|
||||||
{
|
|
||||||
if(entities[i].rule==0)
|
|
||||||
{
|
|
||||||
tempx = entities[i].xp + entities[i].cx;
|
|
||||||
tempy = entities[i].yp + entities[i].cy;
|
|
||||||
tempw = entities[i].w;
|
|
||||||
temph = entities[i].h;
|
|
||||||
rectset(tempx, tempy, tempw, temph);
|
|
||||||
|
|
||||||
for (int j=0; j<nblocks; j++)
|
|
||||||
{
|
|
||||||
if (blocks[j].type == DIRECTIONAL && blocks[j].active)
|
|
||||||
{
|
|
||||||
if(UtilityClass::intersects(blocks[j].rect,temprect))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool entityclass::checkdamage()
|
bool entityclass::checkdamage()
|
||||||
{
|
{
|
||||||
//Returns true if player entity (rule 0) collides with a damagepoint
|
//Returns true if player entity (rule 0) collides with a damagepoint
|
||||||
|
|
|
@ -116,8 +116,6 @@ public:
|
||||||
|
|
||||||
bool entitycollide(int a, int b);
|
bool entitycollide(int a, int b);
|
||||||
|
|
||||||
bool checkdirectional(int t);
|
|
||||||
|
|
||||||
bool checkdamage();
|
bool checkdamage();
|
||||||
|
|
||||||
bool scmcheckdamage();
|
bool scmcheckdamage();
|
||||||
|
|
Loading…
Reference in a new issue