# HG changeset patch # User Wuzzy # Date 1547792679 -3600 # Node ID 5132548cdb7703dc427d6840a732549e1500caea # Parent 92ebe33c5eb6cd4a2bffd8b14f2712469c114f3f Add workaround around an SDL_mixer bug that screws up volume after using flamethrower (bug 721) diff -r 92ebe33c5eb6 -r 5132548cdb77 hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Fri Jan 18 00:36:48 2019 +0100 +++ b/hedgewars/uGearsHandlersMess.pas Fri Jan 18 07:24:39 2019 +0100 @@ -5681,7 +5681,12 @@ HHGear := Gear^.Hedgehog^.Gear; HHGear^.Message := HHGear^.Message and (not (gmUp or gmDown or gmLeft or gmRight)); HHGear^.State := HHGear^.State or gstNotKickable; - Gear^.SoundChannel := LoopSound(sndFlamethrower); + (* NOTE: Flamethrower sound is supposed to start instantly (no fade in), + but this would cause the game volume to screw up because of a bug in SDL_mixer: + https://bugzilla.libsdl.org/show_bug.cgi?id=4205 + As workaround, a tiny fade-in delay was added. + FIXME: Remove the fade-in delay argument when the SDL bug has been fixed. *) + Gear^.SoundChannel := LoopSound(sndFlamethrower, 20); Gear^.doStep := @doStepFlamethrowerWork end;