- SW: Remove Player::siang since we have the same data in

This commit is contained in:
Mitchell Richters 2023-03-15 19:57:45 +11:00
parent 7da3c62ea8
commit a4bca328bc
5 changed files with 1 additions and 6 deletions

View file

@ -800,7 +800,7 @@ static void analyzesprites(tspriteArray& tsprites, const DVector3& viewpos, doub
}
tsp->pos = pos;
tsp->Angles.Yaw = pp->siang;
tsp->Angles.Yaw = pp->Angles.RenderAngles.Yaw;
//continue;
}
else
@ -1260,7 +1260,6 @@ void drawscreen(PLAYER* pp, double interpfrac, bool sceneonly)
}
pp->si = tpos.plusZ(-pp->actor->getOffsetZ());
pp->siang = tangles.Yaw;
QuakeViewChange(camerapp, tpos, tangles.Yaw);
int vis = g_visibility;

View file

@ -1744,7 +1744,6 @@ struct PLAYER
double circle_camera_dist;
DVector3 si; // save player interp position for PlayerSprite
DAngle siang;
DVector2 vect, ovect, slide_vect; // these need floatification, but must be done together. vect is in 14.18 format!

View file

@ -7464,7 +7464,6 @@ DEFINE_FIELD_X(SWPlayer, PLAYER, circle_camera_dist)
//DEFINE_FIELD_X(SWPlayer, PLAYER, six)
//DEFINE_FIELD_X(SWPlayer, PLAYER, siy)
//DEFINE_FIELD_X(SWPlayer, PLAYER, siz)
DEFINE_FIELD_X(SWPlayer, PLAYER, siang)
//DEFINE_FIELD_X(SWPlayer, PLAYER, xvect)
//DEFINE_FIELD_X(SWPlayer, PLAYER, yvect)
//DEFINE_FIELD_X(SWPlayer, PLAYER, oxvect)

View file

@ -460,7 +460,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYER& w, PLAYER*
("six", w.si.X)
("siy", w.si.Y)
("siz", w.si.Z)
("siang", w.siang)
("xvect", w.vect.X)
("yvect", w.vect.Y)
("friction", w.friction)

View file

@ -198,7 +198,6 @@ struct SWPlayer native
native double hiz,loz;
native double p_ceiling_dist,p_floor_dist;
native double circle_camera_dist;
native double siang;
native int friction;
native int16 slide_ang;