From 259bd92fb67a04fd7395c80a47073e6565a59ae8 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 2 Oct 2016 15:08:33 +0000 Subject: [PATCH] Use only 2 player heights while fixing the spawnpoint --- dlls/gamerules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/gamerules.cpp b/dlls/gamerules.cpp index 9a288c69..25ce240b 100644 --- a/dlls/gamerules.cpp +++ b/dlls/gamerules.cpp @@ -65,12 +65,12 @@ Vector FixupSpawnPoint(Vector spawn) { int i = 0; // predict that spawn point is almost correct - while( i < 10 ) // 10 player heights + while( i < 2 ) // 2 player heights { Vector point = spawn + Vector( 0, 0, 36 * i ); TraceResult tr; - UTIL_TraceHull( point, point, missile, 1, NULL, &tr ); - if( !tr.fStartSolid ) + UTIL_TraceHull( point, point, ignore_monsters, 1, NULL, &tr ); + if( !tr.fStartSolid && !tr.fAllSolid ) return point; i = -i; if( i >= 0 )