Skip to content

Commit

Permalink
Fixed sharpview reset was being done in R_SetupFrame, meaning that if…
Browse files Browse the repository at this point in the history
… multiple viewports were in effect only the first drawn would ever snap to the sharp position after a fixed 35hz tic.
  • Loading branch information
danij-deng committed May 21, 2010
1 parent 43a4985 commit dfe7653
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/engine/portable/src/r_main.c
Expand Up @@ -620,10 +620,6 @@ void R_SetupFrame(player_t* player)
if(resetNextViewer ||
V3_Distance(vd->current.pos, sharpView.pos) > VIEWPOS_MAX_SMOOTHDISTANCE)
{
// Keep reseting until a new sharp world has arrived.
if(resetNextViewer > 1)
resetNextViewer = 0;

// Just view from the sharp position.
R_CopyViewer(&vd->current, &sharpView);

Expand Down Expand Up @@ -997,6 +993,10 @@ void R_RenderViewPorts(void)
frameCount++;
}

// Keep reseting until a new sharp world has arrived.
if(resetNextViewer > 1)
resetNextViewer = 0;

// Restore things back to normal.
displayPlayer = oldDisplay;
R_UseViewPort(NULL);
Expand Down

0 comments on commit dfe7653

Please sign in to comment.