mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- removed unused PLAYER::up_speed and down_speed variables.
This commit is contained in:
parent
29d9d02b78
commit
c3ac42a546
4 changed files with 3 additions and 9 deletions
|
@ -616,8 +616,7 @@ struct PLAYER
|
|||
double pbob_amt;
|
||||
|
||||
int jump_count, jump_speed; // jumping
|
||||
int16_t down_speed, up_speed; // diving
|
||||
double z_speed; // used for diving and flying instead of down_speed, up_speed
|
||||
double z_speed;
|
||||
int climb_ndx;
|
||||
double p_ceiling_dist,p_floor_dist;
|
||||
sectortype* hi_sectp, *lo_sectp;
|
||||
|
|
|
@ -4401,7 +4401,7 @@ void DoPlayerDive(PLAYER* pp)
|
|||
}
|
||||
|
||||
// make player bob if sitting still
|
||||
if (!PLAYER_MOVING(pp) && pp->z_speed == 0 && pp->up_speed == 0)
|
||||
if (!PLAYER_MOVING(pp) && pp->z_speed == 0)
|
||||
{
|
||||
DoPlayerSpriteBob(pp, PLAYER_DIVE_HEIGHTF, PLAYER_DIVE_BOB_AMT, 3);
|
||||
}
|
||||
|
@ -6989,8 +6989,6 @@ saveable_module saveable_player =
|
|||
DEFINE_FIELD_X(SWPlayer, PLAYER, sop_remote)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, jump_count)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, jump_speed)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, down_speed)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, up_speed)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, z_speed)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, climb_ndx)
|
||||
DEFINE_FIELD_X(SWPlayer, PLAYER, hiz)
|
||||
|
|
|
@ -449,8 +449,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYER& w, PLAYER*
|
|||
("sop", w.sop)
|
||||
("jump_count", w.jump_count)
|
||||
("jump_speed", w.jump_speed)
|
||||
("down_speed", w.down_speed)
|
||||
("up_speed", w.up_speed)
|
||||
("z_speed", w.z_speed)
|
||||
("climb_ndx", w.climb_ndx)
|
||||
("hiz", w.hiz)
|
||||
|
|
|
@ -188,8 +188,7 @@ struct SWPlayer native
|
|||
native voidptr sop_remote; // the status bar needs to check this - remove once the underlying type can be supported.
|
||||
|
||||
native int jump_count, jump_speed; // jumping
|
||||
native int16 down_speed, up_speed; // diving
|
||||
native double z_speed; // used for diving and flying instead of down_speed, up_speed
|
||||
native double z_speed;
|
||||
native int climb_ndx;
|
||||
native double hiz,loz;
|
||||
native double p_ceiling_dist,p_floor_dist;
|
||||
|
|
Loading…
Reference in a new issue