mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-14 08:50:35 +00:00
o Fixed crosshair issues.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@487 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
dc2c2bb592
commit
2585bdd529
1 changed files with 9 additions and 4 deletions
|
@ -675,11 +675,16 @@ void CHudAmmo::Think(void)
|
|||
}
|
||||
if ( (int)CVAR_GET_FLOAT(kvCustomCrosshair) != m_customCrosshair ) {
|
||||
m_customCrosshair=(int)CVAR_GET_FLOAT(kvCustomCrosshair);
|
||||
WEAPON* currentWeapon = gWR.GetWeapon(gHUD.GetCurrentWeaponID());
|
||||
if ( currentWeapon ) {
|
||||
gWR.LoadWeaponSprites(currentWeapon, m_customCrosshair);
|
||||
gHUD.SetCurrentCrosshair(currentWeapon->hCrosshair, currentWeapon->rcCrosshair, 255, 255, 255);
|
||||
for ( int i=0; i < MAX_WEAPONS; i++ ) {
|
||||
WEAPON *weapon = gWR.GetWeapon(i);
|
||||
if ( weapon ) {
|
||||
gWR.LoadWeaponSprites(weapon, m_customCrosshair);
|
||||
if ( gHUD.GetHUDPlayMode() != PLAYMODE_READYROOM && gHUD.GetCurrentWeaponID() == weapon->iId ) {
|
||||
gHUD.SetCurrentCrosshair(weapon->hCrosshair, weapon->rcCrosshair, 255, 255, 255);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(gHUD.GetIsAlien()) //check for hive death causing loss of current weapon
|
||||
|
|
Loading…
Reference in a new issue