mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30: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?
|
// hit a sprite?
|
||||||
if (hit.actor() != nullptr)
|
if (hit.actor() != nullptr)
|
||||||
{
|
{
|
||||||
auto hitActor = actor->user.coll.actor();
|
auto hitActor = hit.actor();
|
||||||
|
|
||||||
if (hitActor->spr.lotag == TAG_SPRITE_HIT_MATCH)
|
if (hitActor->spr.lotag == TAG_SPRITE_HIT_MATCH)
|
||||||
{
|
{
|
||||||
|
@ -15750,7 +15750,7 @@ int InitSobjMachineGun(DSWActor* actor, PLAYER* pp)
|
||||||
// hit a sprite?
|
// hit a sprite?
|
||||||
if (hit.actor() != nullptr)
|
if (hit.actor() != nullptr)
|
||||||
{
|
{
|
||||||
auto hitActor = actor->user.coll.actor();
|
auto hitActor = hit.actor();
|
||||||
if (hitActor->spr.lotag == TAG_SPRITE_HIT_MATCH)
|
if (hitActor->spr.lotag == TAG_SPRITE_HIT_MATCH)
|
||||||
{
|
{
|
||||||
// spawn sparks here and pass the sprite as SO_MISSILE
|
// spawn sparks here and pass the sprite as SO_MISSILE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue