summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c90881f)
raw | patch | inline | side by side (parent: c90881f)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 15 Aug 2019 21:52:54 +0000 (00:52 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 15 Aug 2019 21:52:54 +0000 (00:52 +0300) |
src/game/g_game.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 21f25cb1a7806c22898c998af38ebc3a63204a9a..da2db1b1a8a484e69016a2091ba9af103a9dbf1b 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
(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
Sound.SetVolume(tgcVolume/255.0);
end
else
+*)
Sound.SetCoords(X+(Width div 2), Y+(Height div 2), tgcVolume/255.0);
end;
end;