mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- minor cleanup
This commit is contained in:
parent
a731db95ae
commit
cd2cb8d60e
4 changed files with 5 additions and 11 deletions
|
@ -109,7 +109,7 @@ bool RRRAFullbrightHack(tspritetype* t, int k)
|
||||||
|
|
||||||
void applyanimations(tspritetype* t, DDukeActor* h, const DVector2& viewVec, DAngle viewang)
|
void applyanimations(tspritetype* t, DDukeActor* h, const DVector2& viewVec, DAngle viewang)
|
||||||
{
|
{
|
||||||
if (GetActorInfo(h)->scriptaddress && !(h->flags2 & SFLAG2_DONTANIMATE))// && (t->cstat & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_SLAB)
|
if (!(h->flags2 & SFLAG2_DONTANIMATE))// && (t->cstat & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_SLAB)
|
||||||
{
|
{
|
||||||
DAngle kang;
|
DAngle kang;
|
||||||
auto action = h->curAction;
|
auto action = h->curAction;
|
||||||
|
@ -212,8 +212,8 @@ void applyanimations(tspritetype* t, DDukeActor* h, const DVector2& viewVec, DAn
|
||||||
if (h->dispictex.isValid())
|
if (h->dispictex.isValid())
|
||||||
h->dispictex = t->spritetexture();
|
h->dispictex = t->spritetexture();
|
||||||
}
|
}
|
||||||
else if (display_mirror == 1)
|
if (display_mirror == 1)
|
||||||
t->cstat |= CSTAT_SPRITE_XFLIP;
|
t->cstat ^= CSTAT_SPRITE_XFLIP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
END_DUKE_NS
|
END_DUKE_NS
|
||||||
|
|
|
@ -292,11 +292,6 @@ inline void processinputvel(int snum)
|
||||||
p->sync.svel = (float)velvect.Y;
|
p->sync.svel = (float)velvect.Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline ActorInfo* GetActorInfo(DDukeActor* actor)
|
|
||||||
{
|
|
||||||
auto cls = static_cast<PClassActor*>(actor->GetClass());
|
|
||||||
return &gs.actorinfo[cls->ActorInfo()->TypeNum];
|
|
||||||
}
|
|
||||||
|
|
||||||
inline const ActorInfo* DDukeActor::conInfo() const
|
inline const ActorInfo* DDukeActor::conInfo() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1477,7 +1477,6 @@ static void processweapon(int snum, ESyncBits actions)
|
||||||
// throw away the remaining clip
|
// throw away the remaining clip
|
||||||
p->ammo_amount[p->curr_weapon] -=
|
p->ammo_amount[p->curr_weapon] -=
|
||||||
p->ammo_amount[p->curr_weapon] % aplWeaponClip(p->curr_weapon, snum);
|
p->ammo_amount[p->curr_weapon] % aplWeaponClip(p->curr_weapon, snum);
|
||||||
// p->kickback_pic = aplWeaponFireDelay(p->curr_weapon, snum)+1; // animate, but don't shoot...
|
|
||||||
p->kickback_pic = aplWeaponTotalTime(p->curr_weapon, snum) + 1; // animate, but don't shoot...
|
p->kickback_pic = aplWeaponTotalTime(p->curr_weapon, snum) + 1; // animate, but don't shoot...
|
||||||
actions &= ~SB_FIRE; // not firing...
|
actions &= ~SB_FIRE; // not firing...
|
||||||
}
|
}
|
||||||
|
@ -1804,7 +1803,7 @@ void processinput_d(int snum)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (psectlotag == 2)
|
if (psectlotag == ST_2_UNDERWATER)
|
||||||
{
|
{
|
||||||
p->vel.XY() *= gs.playerfriction - FixedToFloat(0x1400);
|
p->vel.XY() *= gs.playerfriction - FixedToFloat(0x1400);
|
||||||
p->Angles.StrafeVel *= gs.playerfriction - FixedToFloat(0x1400);
|
p->Angles.StrafeVel *= gs.playerfriction - FixedToFloat(0x1400);
|
||||||
|
|
|
@ -290,7 +290,7 @@ void DDukeActor::Serialize(FSerializer& arc)
|
||||||
|
|
||||||
arc("cgg", cgg)
|
arc("cgg", cgg)
|
||||||
("spriteextra", spriteextra)
|
("spriteextra", spriteextra)
|
||||||
("picnum", attackertype)
|
("attackertype", attackertype)
|
||||||
("ang", hitang)
|
("ang", hitang)
|
||||||
("extra", hitextra)
|
("extra", hitextra)
|
||||||
("owneractor", ownerActor)
|
("owneractor", ownerActor)
|
||||||
|
|
Loading…
Reference in a new issue