Skip to content

Commit

Permalink
server: func_door: removed legacy workaround for crash on map c2a5e
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Feb 18, 2024
1 parent 95082c7 commit 6cc6504
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions server/entities/func_door.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,13 @@ void CBaseDoor::Spawn( void )
UTIL_SetOrigin( this, m_vecPosition1 );
}

// another hack: PhysX 2.8.4.0 crashed while trying to created kinematic body from this brush-model
if ( FStrEq( STRING( gpGlobals->mapname ), "c2a5e" ) && FStrEq( STRING( pev->model ), "*103" ));
else m_pUserData = WorldPhysic->CreateKinematicBodyFromEntity( this );
if (FStrEq(STRING(pev->classname), "func_water")) {
m_pUserData = WorldPhysic->CreateTriggerFromEntity(this);
}
else {
m_pUserData = WorldPhysic->CreateKinematicBodyFromEntity(this);
}

m_iState = STATE_OFF;

// if the door is flagged for USE button activation only, use NULL touch function
Expand Down

0 comments on commit 6cc6504

Please sign in to comment.