From cbe4618a91278679d23c45f846dc2671152a9a5d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 19 Aug 2020 19:07:06 +0200 Subject: [PATCH] - do not play the random sword selection sounds on a map's very first tic. This tends to interfere with map specific voice lines. Fixes #214 --- source/sw/src/panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/panel.cpp b/source/sw/src/panel.cpp index 8204240f4..0364b0970 100644 --- a/source/sw/src/panel.cpp +++ b/source/sw/src/panel.cpp @@ -978,7 +978,7 @@ InitWeaponSword(PLAYERp pp) PlaySound(DIGI_SWORD_UP, pp, v3df_follow|v3df_dontpan); - if (pp == Player+myconnectindex) + if (pp == Player+myconnectindex && totalclock > 0) { rnd_num = STD_RANDOM_RANGE(1024); if (rnd_num > 900)