mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-20 08:00:56 +00:00
- fixed check on wrong actor in DoChemBomb.
This commit is contained in:
parent
514c3ffb10
commit
42a525692d
1 changed files with 3 additions and 4 deletions
|
@ -824,16 +824,15 @@ int DoChemBomb(DSWActor* actor)
|
|||
case kHitSprite:
|
||||
{
|
||||
short wall_ang;
|
||||
SPRITEp hsp;
|
||||
|
||||
if (!TEST(sp->cstat, CSTAT_SPRITE_INVISIBLE))
|
||||
PlaySound(DIGI_CHEMBOUNCE, actor, v3df_dontpan);
|
||||
|
||||
hsp = &actor->s();
|
||||
auto hitActor = u->coll.actor();
|
||||
|
||||
if (TEST(hsp->cstat, CSTAT_SPRITE_ALIGNMENT_WALL))
|
||||
if (TEST(hitActor->spr.cstat, CSTAT_SPRITE_ALIGNMENT_WALL))
|
||||
{
|
||||
wall_ang = NORM_ANGLE(hsp->ang);
|
||||
wall_ang = NORM_ANGLE(hitActor->spr.ang);
|
||||
WallBounce(actor, wall_ang);
|
||||
ScaleSpriteVector(actor, 32000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue