GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f24bb82
)
cosmetic fix in fmod sound driver
author
Ketmar Dark <ketmar@ketmar.no-ip.org>
Thu, 7 Apr 2016 06:47:27 +0000
(09:47 +0300)
committer
Ketmar Dark <ketmar@ketmar.no-ip.org>
Thu, 7 Apr 2016 06:47:27 +0000
(09:47 +0300)
src/engine/e_sound_fmod.inc
patch
|
blob
|
history
diff --git
a/src/engine/e_sound_fmod.inc
b/src/engine/e_sound_fmod.inc
index ceb0c0fc5f4b3d3c9caacbae0dd5028517315c9e..123db2c84975599d4e71bd124b1cee77371b1fb4 100644
(file)
--- a/
src/engine/e_sound_fmod.inc
+++ b/
src/engine/e_sound_fmod.inc
@@
-720,17
+720,15
@@
var
res: FMOD_RESULT;
begin
+ Result := False;
+ if FID = NO_SOUND_ID then Exit;
+
if e_SoundsArray[FID].nRefs >= gMaxSimSounds then
begin
Result := True;
Exit;
end;
- Result := False;
-
- if FID = NO_SOUND_ID then
- Exit;
-
res := FMOD_System_PlaySound(F_System, FMOD_CHANNEL_FREE,
e_SoundsArray[FID].Sound, False, FChannel);
if res <> FMOD_OK then
DEADSOFTWARE 2012-2025