diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index f3eaa83..16bc9b9 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2616,6 +2616,8 @@ void Cmd_Build_f( gentity_t *ent ) buildable = BG_BuildableByName( s )->number; + team = ent->client->ps.stats[ STAT_TEAM ]; + /* To allow players build cuboids with completely arbitrary * dimensions (the current resizing method doesn't provide * much precision) the build command was extended with the @@ -2667,8 +2669,6 @@ void Cmd_Build_f( gentity_t *ent ) return; } - team = ent->client->ps.stats[ STAT_TEAM ]; - if( buildable != BA_NONE && ( ( 1 << ent->client->ps.weapon ) & BG_Buildable( buildable, NULL )->buildWeapon ) && BG_BuildableIsAllowed( buildable ) && |