DEADSOFTWARE

remove volume change at trigger bounds
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 15 Aug 2019 21:52:54 +0000 (00:52 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 15 Aug 2019 21:52:54 +0000 (00:52 +0300)
src/game/g_game.pas

index 21f25cb1a7806c22898c998af38ebc3a63204a9a..da2db1b1a8a484e69016a2091ba9af103a9dbf1b 100644 (file)
@@ -7214,6 +7214,7 @@ begin
            (tgcLocal) and
            Sound.IsPlaying() then
         begin
+(*
           if ((gPlayer1 <> nil) and g_CollidePoint(gPlayer1.GameX, gPlayer1.GameY, X, Y, Width, Height)) or
              ((gPlayer2 <> nil) and g_CollidePoint(gPlayer2.GameX, gPlayer2.GameY, X, Y, Width, Height)) then
           begin
@@ -7221,6 +7222,7 @@ begin
             Sound.SetVolume(tgcVolume/255.0);
           end
           else
+*)
             Sound.SetCoords(X+(Width div 2), Y+(Height div 2), tgcVolume/255.0);
         end;
 end;