From 0c18bffed4b73a8ee9fee38873e502a6eb9788d5 Mon Sep 17 00:00:00 2001 From: pierow Date: Wed, 24 Feb 2021 15:15:10 -0500 Subject: [PATCH] fixed sg pellet visuals backwards compatibility --- main/source/mod/AvHEvents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/source/mod/AvHEvents.cpp b/main/source/mod/AvHEvents.cpp index 32897790..cff6d1e7 100644 --- a/main/source/mod/AvHEvents.cpp +++ b/main/source/mod/AvHEvents.cpp @@ -939,9 +939,9 @@ void EV_SonicGun(struct event_args_s* args) // } //EV_HLDM_FireBullets( idx, forward, right, up, kSGBulletsPerShot, vecSrc, vecAiming, kSGRange, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx-1], VECTOR_CONE_20DEGREES.x, VECTOR_CONE_20DEGREES.y); - bool oldpellets = (gHUD.GetServerVariableFloat(kvVersion) < 323.0f || gHUD.GetServerVariableFloat(kvNewsgspread) == 0.0f); + bool newpellets = (gHUD.GetServerVariableFloat(kvVersion) > 322.0f || gHUD.GetServerVariableFloat(kvNewsgspread) != 0.0f); - if (oldpellets) + if (!newpellets) { EV_HLDM_FireBulletsPlayer(idx, forward, right, up, 10, vecSrc, vecAiming, kSGRange, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], kSGSpread, args->iparam1); }