Skip to content

Commit

Permalink
Fix pda break after using artifact (by @koz)
Browse files Browse the repository at this point in the history
  • Loading branch information
NPi2Loup committed Mar 21, 2020
1 parent 46e2c57 commit 450ae27
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions neo/d3xp/Game_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5563,20 +5563,21 @@ bool idGameLocal::IsPortalSkyAcive()
idGameLocal::SelectTimeGroup
============
*/
void idGameLocal::SelectTimeGroup( int timeGroup )
void idGameLocal::SelectTimeGroup(int timeGroup)
{
if( timeGroup )
// Koz: VR: We still render frames when game is paused. Make sure the 'fast' (player) timegroup is selected during pause.
// This prevents issues with player animation timing in pause.
// Nothing in the slow timegroup should change during pause.
if (timeGroup || (commonVr->VR_GAME_PAUSED && commonVr->PDAforced))
{
fast.Get( time, previousTime, realClientTime );
fast.Get(time, previousTime, realClientTime);
}
else
{
slow.Get( time, previousTime, realClientTime );
slow.Get(time, previousTime, realClientTime);
}

selectedGroup = timeGroup;
}

/*
===========
idGameLocal::GetTimeGroupTime
Expand Down

0 comments on commit 450ae27

Please sign in to comment.