From a8e1411cb942112d76e6cc2c18a885a0a621068f Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 3 Sep 2003 01:48:44 +0000 Subject: * Disallow building on anything other than ENTITYNUM_WORLD --- src/game/g_buildable.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit