summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:55:58 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:20 +0000
commit564fbccd704780f16dd58e03278b11336944fb68 (patch)
treeb8ff124be0ad0491071c92e43a31c1a1c8a39142 /src/game/g_cmds.c
parent5d0545b0427813e9841d876d6022b5e4f664effd (diff)
add cg_disableBlueprintErrors and un-cvarize g_humanRepeaterAllowOverlap
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 65eedc3f..9c670d5a 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2522,32 +2522,51 @@ void Cmd_Build_f( gentity_t *ent )
case IBE_NOROOM:
case IBE_NOOVERMIND:
case IBE_NOPOWERHERE:
+ case IBE_RPWCAUSEOVRL:
ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
break;
// more serious errors just pop a menu
case IBE_NOALIENBP:
- G_TriggerMenu( ent->client->ps.clientNum, MN_A_NOBP );
+ if( ent->client->pers.disableBlueprintErrors )
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
+ else
+ G_TriggerMenu( ent->client->ps.clientNum, MN_A_NOBP );
break;
case IBE_ONEOVERMIND:
- G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEOVERMIND );
+ if( ent->client->pers.disableBlueprintErrors )
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
+ else
+ G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEOVERMIND );
break;
case IBE_ONEHOVEL:
- G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEHOVEL );
+ if( ent->client->pers.disableBlueprintErrors )
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
+ else
+ G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEHOVEL );
break;
case IBE_ONEREACTOR:
- G_TriggerMenu( ent->client->ps.clientNum, MN_H_ONEREACTOR );
+ if( ent->client->pers.disableBlueprintErrors )
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
+ else
+ G_TriggerMenu( ent->client->ps.clientNum, MN_H_ONEREACTOR );
break;
case IBE_NOHUMANBP:
- G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOBP);
+ if( ent->client->pers.disableBlueprintErrors )
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
+ else
+ G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOBP);
break;
case IBE_NODCC:
- G_TriggerMenu( ent->client->ps.clientNum, MN_H_NODCC );
+ if( ent->client->pers.disableBlueprintErrors )
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
+ else
+ G_TriggerMenu( ent->client->ps.clientNum, MN_H_NODCC );
break;
default: