- converted some simple assignments

This commit is contained in:
Christoph Oelckers 2022-08-29 19:30:19 +02:00
parent 23bd9918af
commit 2044a7c562
3 changed files with 6 additions and 6 deletions

View file

@ -293,8 +293,8 @@ static void shootknee(DDukeActor* actor, int p, int sx, int sy, int sz, int sa)
auto splash = spawn(ps[p].GetActor(), WATERSPLASH2);
if (splash)
{
splash->set_int_xy(hit.int_hitpos().X, hit.int_hitpos().Y);
splash->set_int_ang(ps[p].angle.ang.Buildang()); // Total tweek
splash->spr.pos.XY() = hit.hitpos.XY();
splash->spr.angle = ps[p].angle.ang; // Total tweek
splash->spr.xvel = 32;
ssp(actor, CLIPMASK0);
splash->spr.xvel = 0;

View file

@ -185,8 +185,8 @@ static void shootmelee(DDukeActor *actor, int p, int sx, int sy, int sz, int sa,
auto splash = spawn(ps[p].GetActor(), WATERSPLASH2);
if (splash)
{
splash->set_int_xy(hit.int_hitpos().X, hit.int_hitpos().Y);
splash->set_int_ang(ps[p].angle.ang.Buildang()); // Total tweek
splash->spr.pos.XY() = hit.hitpos.XY();
splash->spr.angle = ps[p].angle.ang; // Total tweek
splash->spr.xvel = 32;
ssp(actor, 0);
splash->spr.xvel = 0;

View file

@ -1736,7 +1736,7 @@ void UpdatePlayerSprite(PLAYER* pp)
// Update sprite representation of player
actor->set_int_xy(pp->int_ppos().X, pp->int_ppos().Y);
actor->spr.pos.XY() = pp->pos.XY();
// there are multiple death functions
if (pp->Flags & (PF_DEAD))
@ -5867,7 +5867,7 @@ void DoPlayerDeathMoveHead(PLAYER* pp)
pp->cursector = pp->lv_sector;
ChangeActorSect(pp->actor, pp->lv_sector);
pp->set_int_ppos_XY(pp->lv.XY());
plActor->set_int_xy(pp->int_ppos().X, pp->int_ppos().Y);
plActor->spr.pos.XY() = pp->pos.XY();
}
else
{