From 41afb5f4f1b06879c5a4c7a8bcc2fe8da1c4bd84 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 5 Nov 2016 23:48:20 +0600 Subject: [PATCH] Fix wrong check --- dlls/triggers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/triggers.cpp b/dlls/triggers.cpp index 7afafff1..9d535053 100644 --- a/dlls/triggers.cpp +++ b/dlls/triggers.cpp @@ -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;