diff options
author | M. Kristall <mkpdev@gmail.com> | 2007-08-12 20:29:16 +0000 |
---|---|---|
committer | M. Kristall <mkpdev@gmail.com> | 2007-08-12 20:29:16 +0000 |
commit | d8634af0ea3a97db400f43272c3261e7605a2b33 (patch) | |
tree | c7116c14c20c3cf714efe10d7f1ba4babb6abf9a /src | |
parent | 9f99a4c9135d9ccd476a03137481e643835a4453 (diff) |
* (bug 3290) grangers outside the map (hovel bug)
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_buildable.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 78b83ea3..33f08ae0 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1140,14 +1140,11 @@ qboolean AHovel_Blocked( gentity_t *hovel, gentity_t *player, qboolean provideEx //compute a place up in the air to start the real trace trap_Trace( &tr, origin, mins, maxs, start, player->s.number, MASK_PLAYERSOLID ); - VectorMA( origin, ( HOVEL_TRACE_DEPTH * tr.fraction ) - 1.0f, normal, start ); + VectorMA( origin, HOVEL_TRACE_DEPTH, normal, start ); VectorMA( origin, -HOVEL_TRACE_DEPTH, normal, end ); trap_Trace( &tr, start, mins, maxs, end, player->s.number, MASK_PLAYERSOLID ); - if( tr.startsolid ) - return qtrue; - VectorCopy( tr.endpos, origin ); trap_Trace( &tr, origin, mins, maxs, origin, player->s.number, MASK_PLAYERSOLID ); |