- Fixed: The changecamera special should remove "past viewer" information
from the renderer in case the camera changed position or direction since the last time it was looked through. Otherwise, the renderer will interpolate from its previous view for one frame when it is switched to. - Fixed non-POD parameter passing for GCC introduced in the previous commit. SVN r476 (trunk)
This commit is contained in:
parent
4a6fa7f2a3
commit
26b886b960
7 changed files with 60 additions and 16 deletions
|
|
@ -978,6 +978,33 @@ void R_FreePastViewers ()
|
|||
PastViewers.Clear ();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// R_ClearPastViewer
|
||||
//
|
||||
// If the actor changed in a non-interpolatable way, remove it.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void R_ClearPastViewer (AActor *actor)
|
||||
{
|
||||
for (unsigned int i = 0; i < PastViewers.Size(); ++i)
|
||||
{
|
||||
if (PastViewers[i].ViewActor == actor)
|
||||
{
|
||||
// Found it, so remove it.
|
||||
if (i == PastViewers.Size())
|
||||
{
|
||||
PastViewers.Delete (i);
|
||||
}
|
||||
else
|
||||
{
|
||||
PastViewers.Pop (PastViewers[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// R_CopyStackedViewParameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue