Skip to content
Permalink
Browse files

Restore previous weapon HUD upon vid_restart

  • Loading branch information...
DolceTriade committed Oct 17, 2014
1 parent aa452fc commit 96e94a527c2e91415454413d81d77491092bf028
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/gamelogic/cgame/cg_snapshot.c
@@ -121,7 +121,15 @@ void CG_SetInitialSnapshot( snapshot_t *snap )
CG_CheckEvents( cent );
}

trap_Rocket_ShowHud( WP_NONE );
// Need this check because the initial weapon for spec isn't always WP_NONE
if ( snap->ps.persistant[ PERS_TEAM ] == TEAM_NONE )
{
trap_Rocket_ShowHud( WP_NONE );
}
else
{
trap_Rocket_ShowHud( BG_GetPlayerWeapon( &snap->ps ) );
}
}

/*

0 comments on commit 96e94a5

Please sign in to comment.
You can’t perform that action at this time.