mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
- SW: fixed wrong actor being checked in ContinueHitscan.
This commit is contained in:
parent
8bc1ca5f58
commit
468aea78ef
1 changed files with 2 additions and 2 deletions
|
@ -12810,7 +12810,7 @@ int ContinueHitscan(PLAYER* pp, sectortype* sect, int x, int y, int z, short ang
|
|||
// hit a sprite?
|
||||
if (hit.actor() != nullptr)
|
||||
{
|
||||
auto hitActor = actor->user.coll.actor();
|
||||
auto hitActor = hit.actor();
|
||||
|
||||
if (hitActor->spr.lotag == TAG_SPRITE_HIT_MATCH)
|
||||
{
|
||||
|
@ -15750,7 +15750,7 @@ int InitSobjMachineGun(DSWActor* actor, PLAYER* pp)
|
|||
// hit a sprite?
|
||||
if (hit.actor() != nullptr)
|
||||
{
|
||||
auto hitActor = actor->user.coll.actor();
|
||||
auto hitActor = hit.actor();
|
||||
if (hitActor->spr.lotag == TAG_SPRITE_HIT_MATCH)
|
||||
{
|
||||
// spawn sparks here and pass the sprite as SO_MISSILE
|
||||
|
|
Loading…
Reference in a new issue