Permalink
Browse files

cgame: reset cg.switchbackWeapon after respawn, refs #1063

  • Loading branch information...
Aranud committed Dec 5, 2017
1 parent 1b5aecc commit f11345bed8599f6c422a617401b2ee686e41b299
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/cgame/cg_playerstate.c
@@ -198,6 +198,10 @@ void CG_Respawn(qboolean revived)
// select the weapon the server says we are using
cg.weaponSelect = cg.snap->ps.weapon;
// reset switch back weapon
cg.switchbackWeapon = WP_NONE;
// clear even more things on respawn
cg.zoomedBinoc = qfalse;
cg.zoomedScope = qfalse;

0 comments on commit f11345b

Please sign in to comment.