diff --git a/src/game/g_sound.pas b/src/game/g_sound.pas
index f5ce6c7b9308990ed720398d4f610f19989d7695..b37cd1f896219f277f714e6e372104794a508ede 100644 (file)
--- a/src/game/g_sound.pas
+++ b/src/game/g_sound.pas
end;
WAD.Free();
-
- if not ok then
+ 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;
+{$ENDIF}
end;
-
Result := True;
end;
end;
WAD.Free();
-
- if not ok then
+ 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;
+{$ENDIF}
end;
-
Result := True;
end;