summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-05-31 22:16:09 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-05-31 22:21:01 +0200
commit068a622220beae63c715f69bb91165aa26136b6b (patch)
tree46610cac075d2816ed8ce07699497681b741a6ac /src/game/g_buildable.c
parent74f2de1044632348fbb40a759e00d06f28c262a6 (diff)
Add the clusterfuck mode.game/clusterfuck
Diffstat (limited to 'src/game/g_buildable.c')
-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 f6a98f6..3586a3b 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -3400,6 +3400,9 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance
playerState_t *ps = &ent->client->ps;
itemBuildError_t tempReason;
+ if( g_clusterfuck.integer )
+ return IBE_NONE;
+
// Stop all buildables from interacting with traces
G_SetBuildableLinkState( qfalse );