summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index e85b775d..2a99fb53 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1817,7 +1817,14 @@ void Cmd_Build_f( gentity_t *ent )
}
}
else
+ {
trap_SendServerCommand( ent-g_entities, va( "print \"Cannot build this item\n\"" ) );
+
+ G_LogPrintf( "Client %d tried to build %d using weapon %d\n",
+ ent->client->ps.clientNum,
+ buildable,
+ ( 1 << ent->client->ps.weapon ) & BG_FindBuildWeaponForBuildable( buildable ) );
+ }
}