Skip to content

Commit e536842

Browse files
committed
Fix non-bgm music is not working
- `length2` got override when checking `time` on section format.
1 parent 56ed1f7 commit e536842

File tree

1 file changed

+1
-6
lines changed
  • addons/sourcemod/scripting/freak_fortress_2

1 file changed

+1
-6
lines changed

addons/sourcemod/scripting/freak_fortress_2/bosses.sp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,7 @@ static void LoadCharacter(const char[] character, int charset, const char[] map,
777777
{
778778
ConfigMap cfgsound = val.cfg;
779779
if(cfgsound)
780-
{
781-
length2 = 0;
782-
cfgsound.GetInt("time", length2);
783-
if(length2)
784-
music = true;
785-
}
780+
music = cfgsound.GetSize("time") > 0;
786781
}
787782

788783
if(StrContains(key, SndExts[0]) != -1 || StrContains(key, SndExts[1]) != -1)

0 commit comments

Comments
 (0)