Skip to content

Commit

Permalink
Restore previous weapon HUD upon vid_restart
Browse files Browse the repository at this point in the history
  • Loading branch information
DolceTriade committed Oct 17, 2014
1 parent aa452fc commit 96e94a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gamelogic/cgame/cg_snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}
}

/*
Expand Down

0 comments on commit 96e94a5

Please sign in to comment.