From 2254dacdf1434e369743689321e68d5557950212 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 23 Dec 2021 13:27:48 +0100 Subject: [PATCH] - forgot to save the last change. --- source/games/blood/src/view.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index 93e6f92a1..a73b94888 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -164,7 +164,7 @@ int othercameradist = 1280; int othercameraclock; #if 0 -void CalcOtherPosition(spritetype *pSprite, int *pX, int *pY, int *pZ, sectortype** vsectnum, int nAng, fixed_t zm, int smoothratio) // currently unused +void CalcOtherPosition(DBloodActor *actor, int *pX, int *pY, int *pZ, sectortype** vsectnum, int nAng, fixed_t zm, int smoothratio) // currently unused { int vX = MulScale(-Cos(nAng), 1280, 30); int vY = MulScale(-Sin(nAng), 1280, 30); @@ -629,13 +629,12 @@ void viewDrawScreen(bool sceneonly) it.Reset(kStatProjectile); while (auto actor = it.Next()) { - spritetype* pSprite = &actor->s(); - switch (pSprite->type) { + switch (actor->spr.type) { case kMissileFlareRegular: case kMissileTeslaAlt: case kMissileFlareAlt: case kMissileTeslaRegular: - if (gotsector[pSprite->sectno()]) brightness += 256; + if (gotsector[actor->spr.sectno()]) brightness += 256; break; } }