From 33b3864d14b43cdcd3d7ff1ff7bed5cf9351c901 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 24 Nov 2021 22:16:35 +0100 Subject: [PATCH] - final wall not related to hitscan/neartag. --- source/games/sw/src/sector.cpp | 2 +- source/games/sw/src/sprite.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/sw/src/sector.cpp b/source/games/sw/src/sector.cpp index 4ba97e853..8027f2e07 100644 --- a/source/games/sw/src/sector.cpp +++ b/source/games/sw/src/sector.cpp @@ -2774,7 +2774,7 @@ void DoPanning(void) while (auto actor = it.Next()) { sp = &actor->s(); - wallp = &wall[sp->owner]; + wallp = actor->tempwall; nx = MulScale(sp->xvel, bcos(sp->ang), 20); ny = MulScale(sp->xvel, bsin(sp->ang), 20); diff --git a/source/games/sw/src/sprite.cpp b/source/games/sw/src/sprite.cpp index c922ad467..e6a92c8a7 100644 --- a/source/games/sw/src/sprite.cpp +++ b/source/games/sw/src/sprite.cpp @@ -1956,7 +1956,7 @@ void SpriteSetup(void) break; } - sp->owner = hitinfo.wall; + actor->tempwall = &wall[hitinfo.wall]; // if moves with SO if (TEST_BOOL1(sp)) sp->xvel = 0;