- fixed weapon projection being broken after saving in Blood.

A classic case of having a function which performs too many different tasks.
This commit is contained in:
Christoph Oelckers 2020-01-25 15:27:46 +01:00
parent e8231f904f
commit c0b18d0356

View file

@ -3408,9 +3408,8 @@ void viewDrawScreen(bool sceneonly)
renderDrawMasks(); renderDrawMasks();
gView->pSprite->cstat = bakCstat; gView->pSprite->cstat = bakCstat;
screen->FinishScene(); screen->FinishScene();
if (sceneonly) return;
if (v78 || bDelirium) if ((v78 || bDelirium) && !sceneonly)
{ {
if (videoGetRenderMode() == REND_CLASSIC) if (videoGetRenderMode() == REND_CLASSIC)
{ {
@ -3461,6 +3460,7 @@ void viewDrawScreen(bool sceneonly)
int nClipDist = gView->pSprite->clipdist << 2; int nClipDist = gView->pSprite->clipdist << 2;
int ve8, vec, vf0, vf4; int ve8, vec, vf0, vf4;
GetZRange(gView->pSprite, &vf4, &vf0, &vec, &ve8, nClipDist, 0); GetZRange(gView->pSprite, &vf4, &vf0, &vec, &ve8, nClipDist, 0);
if (sceneonly) return;
#if 0 #if 0
int tmpSect = nSectnum; int tmpSect = nSectnum;
if ((vf0 & 0xc000) == 0x4000) if ((vf0 & 0xc000) == 0x4000)
@ -3481,7 +3481,7 @@ void viewDrawScreen(bool sceneonly)
} }
} }
#endif #endif
//PspTwoDSetter set;
if (gViewPos == 0) if (gViewPos == 0)
{ {
if (cl_crosshair) if (cl_crosshair)