- migrated all uses outside of track.cpp.

This commit is contained in:
Christoph Oelckers 2022-10-03 21:47:05 +02:00
parent 2148dba3a6
commit 398e66f359
4 changed files with 5 additions and 5 deletions

View file

@ -250,7 +250,7 @@ short RectClipTurn(PLAYER* pp, DAngle new_angl, DVector2* qpos, DVector2* opos)
DAngle rot_angl;
int point_num;
rot_angl = new_angl + DAngle::fromBuild(sop->int_i_spin_ang() - sop->int_i_ang_orig());
rot_angl = new_angl + sop->spin_ang - sop->ang_orig;
for (i = 0; i < 4; i++)
{
xy[i] = rotatepoint(pp->pos.XY(), opos[i], rot_angl);

View file

@ -163,7 +163,7 @@ short DoSOevent(short match, short state)
vel_adj = -SP_TAG7(me_act);
}
sop->set_int_i_spin_speed(sop->int_i_spin_speed() + spin_adj);
sop->spin_speed += DAngle::fromBuild(spin_adj);
if (TEST_BOOL1(me_act))
sop->vel_tgt += vel_adj;

View file

@ -4816,7 +4816,7 @@ void DoPlayerBeginOperate(PLAYER* pp)
pp->sop = pp->sop_control = sop;
sop->controller = pp->actor;
pp->angle.oang = pp->angle.ang = DAngle::fromBuild(sop->int_i_ang());
pp->angle.oang = pp->angle.ang = sop->ang;
pp->pos.XY() = sop->pmid.XY();
updatesector(pp->pos, &pp->cursector);
getzsofslopeptr(pp->cursector, pp->pos, &cz, &fz);
@ -4900,7 +4900,7 @@ void DoPlayerBeginRemoteOperate(PLAYER* pp, SECTOR_OBJECT* sop)
auto save_sect = pp->cursector;
pp->angle.oang = pp->angle.ang = DAngle::fromBuild(sop->int_i_ang());
pp->angle.oang = pp->angle.ang = sop->ang;
pp->pos.XY() = sop->pmid.XY();
updatesector(pp->pos, &pp->cursector);
getzsofslopeptr(pp->cursector, pp->pos, &cz, &fz);

View file

@ -1663,7 +1663,7 @@ int OperateSprite(DSWActor* actor, short player_is_operating)
sop = &SectorObject[so_num];
sop->set_int_i_ang_tgt(NORM_ANGLE(sop->int_i_ang_tgt() + 512));
sop->ang_tgt += DAngle90;
PlaySound(DIGI_BIGSWITCH, actor, v3df_none);