Skip to content

Commit

Permalink
- Blood: Fixed choking hand with new renderer.
Browse files Browse the repository at this point in the history
This gets directed to the weapon 3D drawer, but for that it was processed too late.
  • Loading branch information
coelckers committed Jan 23, 2022
1 parent a23124a commit e64a6f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions source/games/blood/src/hudsprites.cpp
Expand Up @@ -172,6 +172,13 @@ void hudDraw(PLAYER* gView, sectortype* pSector, double bobx, double boby, doubl
drawElement(0, 237, 2358, 1, 0, 1, -1);
drawElement(320, 237, 2358, 1, 1, 1, 1);
}

int zn = ((gView->zWeapon - gView->zView - (12 << 8)) >> 7) + 220;
PLAYER* pPSprite = &gPlayer[gMe->actor->spr.type - kDudePlayer1];
if (gMe->actor->IsPlayerActor() && pPSprite->hand == 1)
{
gChoke.animateChoke(160, zn, (int)gInterpolate);
}
}

END_BLD_NS
6 changes: 0 additions & 6 deletions source/games/blood/src/view.cpp
Expand Up @@ -827,12 +827,6 @@ void viewDrawScreen(bool sceneonly)
DrawMap(gView->actor);
}
UpdateStatusBar();
int zn = ((gView->zWeapon - gView->zView - (12 << 8)) >> 7) + 220;
PLAYER* pPSprite = &gPlayer[gMe->actor->spr.type - kDudePlayer1];
if (gMe->actor->IsPlayerActor() && pPSprite->hand == 1)
{
gChoke.animateChoke(160, zn, (int)gInterpolate);
}

viewDrawAimedPlayerName();
if (paused)
Expand Down

0 comments on commit e64a6f7

Please sign in to comment.