mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2025-01-31 13:50:37 +00:00
Fix controls menu not updating weapon model
Q3 updates the weapon model at end of drop weapon animation but Q3Rally doesn't use animations. So update the weapon model when triggering the weapon change sound.
This commit is contained in:
parent
b3b8e60176
commit
70428c4d2e
1 changed files with 4 additions and 0 deletions
|
@ -1111,6 +1111,10 @@ void UI_DrawPlayer( float x, float y, float w, float h, playerInfo_t *pi, int ti
|
|||
if( pi->currentWeapon != pi->weapon ) {
|
||||
trap_S_StartLocalSound( weaponChangeSound, CHAN_LOCAL );
|
||||
}
|
||||
|
||||
// Q3 changes weapon model at end of TORSO_DROP animation
|
||||
// but Q3Rally doesn't use it so just change weapon now.
|
||||
UI_PlayerInfo_SetWeapon( pi, pi->weapon );
|
||||
}
|
||||
|
||||
UI_AdjustFrom640( &x, &y, &w, &h );
|
||||
|
|
Loading…
Reference in a new issue