diff --git a/src/game/g_sound.pas b/src/game/g_sound.pas
index b1e09f8b4d91ee642fac286bf529fb0f32ab88c2..b37cd1f896219f277f714e6e372104794a508ede 100644 (file)
--- a/src/game/g_sound.pas
+++ b/src/game/g_sound.pas
end;
WAD.Free();
-{$IFNDEF HEADLESS}
if (not ok) then
begin
+{$IFNDEF HEADLESS}
if isMusic then
e_WriteLog(Format('Error loading music %s', [Resource]), MSG_WARNING)
else
e_WriteLog(Format('Error loading sound %s', [Resource]), MSG_WARNING);
Exit;
- end;
{$ENDIF}
+ end;
Result := True;
end;
end;
WAD.Free();
-{$IFNDEF HEADLESS}
if (not ok) then
begin
+{$IFNDEF HEADLESS}
if isMusic then
e_WriteLog(Format('Error loading music %s', [Resource]), MSG_WARNING)
else
e_WriteLog(Format('Error loading sound %s', [Resource]), MSG_WARNING);
Exit;
- end;
{$ENDIF}
+ end;
Result := True;
end;