Fix wrong check

This commit is contained in:
mittorn 2016-11-05 23:48:20 +06:00
parent a8a4b1f5da
commit 41afb5f4f1
1 changed files with 2 additions and 2 deletions

View File

@ -1856,9 +1856,9 @@ bool CoopGetSpawnPoint( Vector *origin, Vector *angles)
if( mp_unduck.value && g_fSavedDuck && !g_SavedCoords.fUsed )
UTIL_TraceHull( point, point + angle * 100, missile, head_hull, NULL, &tr );
else
UTIL_TraceHull( point, point + angle * 100, missile, human_hull, NULL, &tr );
UTIL_TraceHull( point, point + angle * 100, ignore_monsters, human_hull, NULL, &tr );
if( !tr.fStartSolid && !tr.fAllSolid )
if( !tr.fStartSolid && !tr.fAllSolid || ENTINDEX( tr.pHit ) && ENTINDEX( tr.pHit ) <= gpGlobals->maxClients )
{
//g_SavedCoords.triggerorigin = tr.vecEndPos;
//g_SavedCoords.validspawnpoint = true;