From: DeaDDooMER Date: Thu, 15 Aug 2019 21:52:54 +0000 (+0300) Subject: remove volume change at trigger bounds X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=3a6c3884caee5abb903ab88adc172a0fa8edf78b remove volume change at trigger bounds --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 21f25cb..da2db1b 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -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;