changeset 5653 | fa58dea8a9ad |
parent 5652 | 28a8e14a4b8d |
child 5655 | 44c2d19f79e2 |
child 5673 | 85336f377479 |
--- a/hedgewars/uSound.pas Mon Aug 22 10:54:53 2011 -0400 +++ b/hedgewars/uSound.pas Mon Aug 22 10:56:19 2011 -0400 @@ -290,6 +290,7 @@ procedure AddVoice(snd: TSound; voicepack: PVoicepack); var i : LongInt; begin + if (not isSoundEnabled) or fastUntilLag then exit; i:= 0; while (i<8) and (VoiceList[i].snd <> sndNone) do inc(i);