mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 19:51:33 +00:00
Fix for vanishing tauntaun
This commit is contained in:
parent
948b6fb281
commit
4e94e0ee8b
1 changed files with 7 additions and 0 deletions
|
@ -4652,6 +4652,13 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen
|
|||
!gent->client->ps.powerups[PW_UNCLOAKING] &&
|
||||
!gent->client->ps.powerups[PW_DISRUPTION] )
|
||||
{
|
||||
// HACK HACK HACK
|
||||
// If this entity is a vehicle being piloted by the player, then increase the radius so it doesn't get culled
|
||||
if (gent->m_pVehicle && gent->m_pVehicle->m_pPilot && gent->m_pVehicle->m_pPilot->s.number == 0 )
|
||||
{
|
||||
ent->radius = 80;
|
||||
}
|
||||
|
||||
cgi_R_AddRefEntityToScene( ent );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue