X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_sound.pas;h=b1e09f8b4d91ee642fac286bf529fb0f32ab88c2;hp=f5ce6c7b9308990ed720398d4f610f19989d7695;hb=0968d19494ddf24230a822c02acbe3a3334bc3ad;hpb=cd0c726308c335c662384b41d9e23af0457290f7 diff --git a/src/game/g_sound.pas b/src/game/g_sound.pas index f5ce6c7..b1e09f8 100644 --- a/src/game/g_sound.pas +++ b/src/game/g_sound.pas @@ -309,8 +309,8 @@ begin end; WAD.Free(); - - if not ok then +{$IFNDEF HEADLESS} + if (not ok) then begin if isMusic then e_WriteLog(Format('Error loading music %s', [Resource]), MSG_WARNING) @@ -318,7 +318,7 @@ begin e_WriteLog(Format('Error loading sound %s', [Resource]), MSG_WARNING); Exit; end; - +{$ENDIF} Result := True; end; @@ -359,8 +359,8 @@ begin end; WAD.Free(); - - if not ok then +{$IFNDEF HEADLESS} + if (not ok) then begin if isMusic then e_WriteLog(Format('Error loading music %s', [Resource]), MSG_WARNING) @@ -368,7 +368,7 @@ begin e_WriteLog(Format('Error loading sound %s', [Resource]), MSG_WARNING); Exit; end; - +{$ENDIF} Result := True; end;