mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- converted some simple assignments
This commit is contained in:
parent
23bd9918af
commit
2044a7c562
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue