From cd6f59f1d7b5ddf00f3817f6b8fb9ee83a85494c Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 15 Apr 2017 00:09:07 +0200 Subject: 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 --- src/game/g_cmds.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit