diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-13 16:53:43 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:10 +0100 |
commit | 26679919179daee5a72c1cd900d54338b5d72efe (patch) | |
tree | 6879abc65d9a0f4f3a605578f3f839309fd28bbd /src/game/bg_misc.c | |
parent | e4e1662ce6e1d44f1714a2776791f151334b5bde (diff) |
make buildable placement precise
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r-- | src/game/bg_misc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index c41344aa..32b821ea 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -3323,8 +3323,7 @@ void BG_PositionBuildableRelativeToPlayer( const playerState_t *ps, // The mask is MASK_DEADSOLID on purpose to avoid collisions with other entities (*trace)( tr, entityOrigin, mins, maxs, targetOrigin, ps->clientNum, MASK_DEADSOLID ); - VectorCopy( tr->endpos, entityOrigin ); - VectorMA( entityOrigin, 0.1f, playerNormal, outOrigin ); + VectorCopy( tr->endpos, outOrigin ); vectoangles( forward, outAngles ); } |