mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-22 12:11:24 +00:00
JKA - Ensure UseVR Position is only true when in first person
This commit is contained in:
parent
3897531544
commit
895b09041f
1 changed files with 3 additions and 1 deletions
|
@ -24,6 +24,8 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
#include "common_headers.h"
|
#include "common_headers.h"
|
||||||
|
|
||||||
// included in both game dll and client
|
// included in both game dll and client
|
||||||
|
#define GAME_INCLUDE
|
||||||
|
#include "../cgame/cg_local.h"
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "g_local.h"
|
||||||
#include "bg_public.h"
|
#include "bg_public.h"
|
||||||
|
@ -797,7 +799,7 @@ void BG_CalculateVRSaberPosition( int saberNum, vec3_t origin, vec3_t angles )
|
||||||
|
|
||||||
bool BG_UseVRPosition( gentity_t *ent )
|
bool BG_UseVRPosition( gentity_t *ent )
|
||||||
{
|
{
|
||||||
return ( ent->client && ent->client->ps.clientNum == 0 );
|
return ( ent->client && ent->client->ps.clientNum == 0 && !cg.renderingThirdPerson);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue