Fix par21 body passed to EV_WeaponAnimation.

This commit is contained in:
Andrey Akhmichin 2022-11-16 10:50:15 +05:00
parent 95379c8263
commit 4d782eab7c
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
1 changed files with 2 additions and 2 deletions

View File

@ -723,7 +723,7 @@ void EV_FirePar21( struct event_args_s *args )
{
// Add muzzle flash to current weapon model
EV_MuzzleFlash();
gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 2 );
gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 0 );
V_PunchAxis( 0, gEngfuncs.pfnRandomFloat( -2, 2 ) );
}
@ -761,7 +761,7 @@ void EV_M203( struct event_args_s *args )
if( EV_IsLocal( idx ) )
{
gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_LAUNCH, 2 );
gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_LAUNCH, 0 );
V_PunchAxis( 0, -10 );
}