summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-09-03 01:48:44 +0000
committerTim Angus <tim@ngus.net>2003-09-03 01:48:44 +0000
commita8e1411cb942112d76e6cc2c18a885a0a621068f (patch)
treec1770d529c4d9db11d01537b3db9f4a9c0dda410 /src
parentfd5fb23fed5ac81d2da7653d5692aa5e0cc91c7c (diff)
* Disallow building on anything other than ENTITYNUM_WORLD
Diffstat (limited to 'src')
-rw-r--r--src/game/g_buildable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index fab860a2..0f5e9998 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -2029,6 +2029,9 @@ itemBuildError_t G_itemFits( gentity_t *ent, buildable_t buildable, int distance
if( !( normal[ 2 ] >= minNormal || ( invert && normal[ 2 ] <= -minNormal ) ) )
return IBE_NORMAL;
+ if( tr1.entityNum != ENTITYNUM_WORLD )
+ return IBE_NORMAL;
+
if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS )
{
//alien criteria