summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-15 00:09:07 +0200
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:18 +0200
commitcd6f59f1d7b5ddf00f3817f6b8fb9ee83a85494c (patch)
treeeca5474218a23a406538b307b60abbe075bf07ce /src
parent4408a7c6da5e5e67ee18c36ba2c4ff7a350745cd (diff)
prevent obscure spectator effects after stopping following someone, like the slowblob effect
no current STAT_STATE flag seem appropriate for a flying spectator, so they all should be off
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 4c22e71..ec2b7db 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -4621,8 +4621,7 @@ void G_StopFollowing( gentity_t *ent )
if( BG_InventoryContainsUpgrade( UP_BATTLESUIT, ent->client->ps.stats ) )
BG_RemoveUpgradeFromInventory( UP_BATTLESUIT, ent->client->ps.stats );
- ent->client->ps.stats[ STAT_STATE ] &= ~SS_WALLCLIMBING;
- ent->client->ps.stats[ STAT_STATE ] &= ~SS_WALLCLIMBINGCEILING;
+ ent->client->ps.stats[ STAT_STATE ] = 0;
ent->client->ps.eFlags &= ~EF_WALLCLIMB;
ent->client->ps.viewangles[ PITCH ] = 0.0f;