- Duke: Remove unused angle rotation from animatesprites_r().

This commit is contained in:
Mitchell Richters 2023-10-03 10:25:03 +11:00
parent 3c51f03def
commit 559ee2f3c6

View file

@ -39,7 +39,6 @@ BEGIN_DUKE_NS
void animatesprites_r(tspriteArray& tsprites, const DVector2& viewVec, DAngle viewang, double interpfrac) void animatesprites_r(tspriteArray& tsprites, const DVector2& viewVec, DAngle viewang, double interpfrac)
{ {
int k;
tspritetype* t; tspritetype* t;
DDukeActor* h; DDukeActor* h;
@ -227,7 +226,6 @@ void animatesprites_r(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi
else if (p->OnBoat) else if (p->OnBoat)
{ {
t->setspritetexture(TexMan.CheckForTexture("PLAYERONBOAT", ETextureType::Any)); t->setspritetexture(TexMan.CheckForTexture("PLAYERONBOAT", ETextureType::Any));
k = angletorotation2(h->spr.Angles.Yaw, viewang);
applyRotation2(h, t, viewang); applyRotation2(h, t, viewang);
t->scale = DVector2(0.5, 0.5); t->scale = DVector2(0.5, 0.5);
drawshadows(tsprites, t, h); drawshadows(tsprites, t, h);