mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove entclass::clear(), simplify entclass initializations
Previously there was an entclass::clear(), and initialization of an entclass was done by calling clear() in order to not duplicate code. But now there's no need for an entclass::clear(), and it is in fact unused (just call entityclass::removeentity() instead), so I'm removing this function.
This commit is contained in:
parent
ecf556dc55
commit
2cb90afbda
2 changed files with 0 additions and 8 deletions
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
entclass::entclass()
|
entclass::entclass()
|
||||||
{
|
{
|
||||||
clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void entclass::clear()
|
|
||||||
{
|
|
||||||
// Set all values to a default, required for creating a new entity
|
|
||||||
invis = false;
|
invis = false;
|
||||||
type = 0;
|
type = 0;
|
||||||
size = 0;
|
size = 0;
|
||||||
|
|
|
@ -8,8 +8,6 @@ class entclass
|
||||||
public:
|
public:
|
||||||
entclass();
|
entclass();
|
||||||
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
bool outside();
|
bool outside();
|
||||||
|
|
||||||
void setenemy(int t);
|
void setenemy(int t);
|
||||||
|
|
Loading…
Reference in a new issue