mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-24 21:11:03 +00:00
Fix crash when entering AT-ST in JKA
This commit is contained in:
parent
ff6827a4ed
commit
2a3efff83e
1 changed files with 8 additions and 2 deletions
|
@ -1318,7 +1318,6 @@ qboolean CG_CalcFOVFromX( float fov_x )
|
|||
}
|
||||
|
||||
// set it
|
||||
cg.refdef.override_fov = inwater;
|
||||
cg.refdef.fov_x = fov_x;
|
||||
cg.refdef.fov_y = fov_y;
|
||||
|
||||
|
@ -2178,9 +2177,16 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView ) {
|
|||
g_entities[0].s.m_iVehicleNum != 0 ));
|
||||
vr->vehicle_type = VH_NONE;
|
||||
if (vr->in_vehicle)
|
||||
{
|
||||
if (g_entities[0].client->NPC_class == CLASS_ATST)
|
||||
{
|
||||
vr->vehicle_type = VH_WALKER;
|
||||
}
|
||||
else if (g_entities[0].s.m_iVehicleNum != 0 && g_entities[g_entities[0].s.m_iVehicleNum].m_pVehicle)
|
||||
{
|
||||
vr->vehicle_type = (int) g_entities[g_entities[0].s.m_iVehicleNum].m_pVehicle->m_pVehicleInfo->type;
|
||||
}
|
||||
}
|
||||
|
||||
vr->remote_npc = !Q_stricmp( "NPC", g_entities[cg.snap->ps.viewEntity].classname );
|
||||
vr->remote_droid = false;
|
||||
|
|
Loading…
Reference in a new issue