1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 02:39:41 +01:00

Add entclass::ishumanoid()

"Humanoid" is just a word for "crewmate or player" but without having to
say "crewmate or player". This is just to make it so humanoids get drawn
after all other entities get drawn, meaning humanoids will be drawn on
top.
This commit is contained in:
Misa 2020-10-19 23:10:18 -07:00 committed by Ethan Lee
parent d05fbe8687
commit 733d0dad80
2 changed files with 10 additions and 0 deletions

View file

@ -644,3 +644,11 @@ void entclass::updatecolour()
break;
}
}
bool entclass::ishumanoid()
{
return type == 0
|| type == 12
|| type == 14
|| type == 55;
}

View file

@ -20,6 +20,8 @@ public:
void updatecolour();
bool ishumanoid();
public:
//Fundamentals
bool invis;