mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
game(hl1): fix apache,can bbox, fix DROP_TO_FLOOR, fix barnacle
This commit is contained in:
@@ -345,7 +345,7 @@ int UTIL_DropToFloor( CBaseEntity *pEntity, unsigned int mask, CBaseEntity *pIgn
|
||||
|
||||
trace_t trace;
|
||||
|
||||
#ifndef HL2MP
|
||||
#if !defined(HL2MP) && !defined(HL1_DLL)
|
||||
// HACK: is this really the only sure way to detect crossing a terrain boundry?
|
||||
UTIL_TraceEntity( pEntity, pEntity->GetAbsOrigin(), pEntity->GetAbsOrigin(), mask, pIgnore, pEntity->GetCollisionGroup(), &trace );
|
||||
if (trace.fraction == 0.0)
|
||||
@@ -354,6 +354,7 @@ int UTIL_DropToFloor( CBaseEntity *pEntity, unsigned int mask, CBaseEntity *pIgn
|
||||
|
||||
UTIL_TraceEntity( pEntity, pEntity->GetAbsOrigin(), pEntity->GetAbsOrigin() - Vector(0,0,256), mask, pIgnore, pEntity->GetCollisionGroup(), &trace );
|
||||
|
||||
|
||||
if (trace.allsolid)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user