Client View: Ensure modelindex of the viewmodels get set to 0 when
we've got no valid weapon set.
This commit is contained in:
parent
c44bf11e3b
commit
0147278359
1 changed files with 4 additions and 1 deletions
|
@ -183,10 +183,13 @@ View_DrawViewModel(void)
|
|||
pSeat->m_iLastWeapon = pl.activeweapon;
|
||||
|
||||
if (pl.activeweapon) {
|
||||
|
||||
/* hack, we changed the wep, move this into Game_Input/PMove */
|
||||
Weapons_Draw((player)pl);
|
||||
} else {
|
||||
pSeat->m_eViewModel.modelindex =
|
||||
pSeat->m_eViewModelL.modelindex = 0;
|
||||
}
|
||||
|
||||
NSRenderableEntity viewModel = (NSRenderableEntity)pSeat->m_eViewModelL;
|
||||
viewModel._UpdateBoneCount();
|
||||
viewModel = (NSRenderableEntity)pSeat->m_eViewModel;
|
||||
|
|
Loading…
Reference in a new issue