diff --git a/src/game/g_sound.pas b/src/game/g_sound.pas
index ebce17eb3da8bd509dc7c31ef2e4c850ccbee0e2..b37cd1f896219f277f714e6e372104794a508ede 100644 (file)
--- a/src/game/g_sound.pas
+++ b/src/game/g_sound.pas
function SetByName(SN: String): Boolean;
function SetCoords(X, Y: Integer; Volume: Single): Boolean;
- property Loop: Boolean read FLoop write FLoop;
+ property Loop: Boolean read FMusic write FMusic;
property Name: String read FName;
end;
FreeMem(SoundData);
end
else
- e_WriteLog(Format('WAD Reader error: %s', [WAD.GetLastErrorStr]), MSG_WARNING);
+ begin
+ //e_WriteLog(Format('WAD Reader error: %s', [WAD.GetLastErrorStr]), MSG_WARNING);
+ 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;
FreeMem(SoundData);
end
else
- e_WriteLog(Format('WAD Reader error: %s', [WAD.GetLastErrorStr]), MSG_WARNING);
+ begin
+ //e_WriteLog(Format('WAD Reader error: %s', [WAD.GetLastErrorStr]), MSG_WARNING);
+ 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;