summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
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
commit26679919179daee5a72c1cd900d54338b5d72efe (patch)
tree6879abc65d9a0f4f3a605578f3f839309fd28bbd /src/game/g_cmds.c
parente4e1662ce6e1d44f1714a2776791f151334b5bde (diff)
make buildable placement precise
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index a83d386a..1a3413a1 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2407,6 +2407,7 @@ void Cmd_Build_f( gentity_t *ent )
buildable_t buildable;
float dist;
vec3_t origin, normal;
+ int groundEntNum;
team_t team;
if( ent->client->pers.namelog->denyBuild )
@@ -2445,7 +2446,7 @@ void Cmd_Build_f( gentity_t *ent )
ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
//these are the errors displayed when the builder first selects something to use
- switch( G_CanBuild( ent, buildable, dist, origin, normal ) )
+ switch( G_CanBuild( ent, buildable, dist, origin, normal, &groundEntNum ) )
{
// can place right away, set the blueprint and the valid togglebit
case IBE_NONE: