Permalink
Browse files

cgame: don't reset cg.switchbackWeapon if revived

  • Loading branch information...
Aranud committed Dec 6, 2017
1 parent cf74f7d commit b64f210af6f806fd5abeeccc456463a4f6fd9b1c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/cgame/cg_playerstate.c
@@ -199,9 +199,6 @@ 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;
@@ -230,6 +227,9 @@ void CG_Respawn(qboolean revived)
if (!revived)
{
cgs.limboLoadoutSelected = qfalse;
// reset switch back weapon
cg.switchbackWeapon = WP_NONE;
}
// Saves the state of sidearm (riflenade weapon is considered as one too)

0 comments on commit b64f210

Please sign in to comment.