mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 18:39:45 +01:00
Remove unused attributes from entclass
These attributes were `jumping` and `jumpframe`. Removal of unused attributes makes reading the code easier.
This commit is contained in:
parent
cbceeccf78
commit
733cad723b
3 changed files with 0 additions and 5 deletions
|
@ -38,11 +38,9 @@ entclass::entclass()
|
||||||
x2 = 320;
|
x2 = 320;
|
||||||
y2 = 240;
|
y2 = 240;
|
||||||
|
|
||||||
jumping = false;
|
|
||||||
gravity = false;
|
gravity = false;
|
||||||
onground = 0;
|
onground = 0;
|
||||||
onroof = 0;
|
onroof = 0;
|
||||||
jumpframe = 0;
|
|
||||||
|
|
||||||
onentity = 0;
|
onentity = 0;
|
||||||
harmful = false;
|
harmful = false;
|
||||||
|
|
|
@ -42,10 +42,8 @@ public:
|
||||||
int onwall, onxwall, onywall;
|
int onwall, onxwall, onywall;
|
||||||
|
|
||||||
//Platforming specific
|
//Platforming specific
|
||||||
bool jumping;
|
|
||||||
bool gravity;
|
bool gravity;
|
||||||
int onground, onroof;
|
int onground, onroof;
|
||||||
int jumpframe;
|
|
||||||
//Animation
|
//Animation
|
||||||
int framedelay, drawframe, walkingframe, dir, actionframe;
|
int framedelay, drawframe, walkingframe, dir, actionframe;
|
||||||
int yp;int xp;
|
int yp;int xp;
|
||||||
|
|
|
@ -4446,7 +4446,6 @@ void entityclass::entitymapcollision( int t )
|
||||||
{
|
{
|
||||||
if (entities[t].onwall > 0) entities[t].state = entities[t].onwall;
|
if (entities[t].onwall > 0) entities[t].state = entities[t].onwall;
|
||||||
if (entities[t].onywall > 0) entities[t].state = entities[t].onywall;
|
if (entities[t].onywall > 0) entities[t].state = entities[t].onywall;
|
||||||
entities[t].jumpframe = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue