summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-03-03 05:22:52 +0000
committerTim Angus <tim@ngus.net>2004-03-03 05:22:52 +0000
commit0825a563b705c50de551951c4c131d0482935c45 (patch)
tree980527e27a664251cd6ab4bccddcf72eabd00bf3 /src/game/g_cmds.c
parentb217fba48b8bff70880b33301502adf42ac61973 (diff)
* Fixed chasecam engagement bug
* Raised turret effectiveness again * Raised human weapon damage by 5% * Refactored buildable rendering code * Buildable rendering now falls back to a box trace when a cap trace misses * Human ckit can't repair destroyed buildables * Human reactor strengthened by 50%
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 5762d3f0..b2d56731 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1830,12 +1830,12 @@ void G_StopFollowing( gentity_t *ent )
Cmd_Follow_f
=================
*/
-void Cmd_Follow_f( gentity_t *ent )
+void Cmd_Follow_f( gentity_t *ent, qboolean toggle )
{
int i;
char arg[ MAX_TOKEN_CHARS ];
- if( trap_Argc( ) != 2 )
+ if( trap_Argc( ) != 2 || toggle )
{
if( ent->client->sess.spectatorState == SPECTATOR_FOLLOW )
G_StopFollowing( ent );
@@ -2067,7 +2067,7 @@ void ClientCommand( int clientNum )
else if( Q_stricmp( cmd, "callteamvote" ) == 0 )
Cmd_CallTeamVote_f( ent );
else if( Q_stricmp( cmd, "follow" ) == 0 )
- Cmd_Follow_f( ent );
+ Cmd_Follow_f( ent, qfalse );
else if( Q_stricmp (cmd, "follownext") == 0)
Cmd_FollowCycle_f( ent, 1 );
else if( Q_stricmp( cmd, "followprev" ) == 0 )