Fix for WEAPON_GAUSS not displaying the draw animation

This commit is contained in:
Marco Cawthorne 2021-05-29 12:46:32 +02:00
parent 6484cf0ff9
commit a2602bb131

View file

@ -173,12 +173,11 @@ void w_gauss_draw(void)
{ {
player pl = (player)self; player pl = (player)self;
pl.mode_tempstate = 0; pl.mode_tempstate = 0;
/* link the FX class */
#ifdef CLIENT
Weapons_SetModel("models/v_gauss.mdl"); Weapons_SetModel("models/v_gauss.mdl");
Weapons_ViewAnimation(GAUSS_DRAW); Weapons_ViewAnimation(GAUSS_DRAW);
/* link the FX class */
#ifdef CLIENT
entity eold = self; entity eold = self;
self = pSeat->m_pWeaponFX; self = pSeat->m_pWeaponFX;
spawnfunc_FXGauss(); spawnfunc_FXGauss();