diff options
author | Carsten Weisse <[email protected]> | 2004-10-29 16:38:36 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2004-10-29 16:38:36 +0000 |
commit | 5b6e91844b2c582cb99644301e63935e81efa15f (patch) | |
tree | 6c415e5b67179bcd14c1f75be7075ce37eeda48e /src/jake2/sound | |
parent | 4d3167c97cd5d79c975e6e388a8c2c2391f71651 (diff) |
a warning is better here than the end of the game (network mode)
Diffstat (limited to 'src/jake2/sound')
-rw-r--r-- | src/jake2/sound/WaveLoader.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/sound/WaveLoader.java b/src/jake2/sound/WaveLoader.java index 020ab52..7f77168 100644 --- a/src/jake2/sound/WaveLoader.java +++ b/src/jake2/sound/WaveLoader.java @@ -2,7 +2,7 @@ * SND_MEM.java * Copyright (C) 2004 * - * $Id: WaveLoader.java,v 1.1 2004-07-09 06:50:48 hzi Exp $ + * $Id: WaveLoader.java,v 1.2 2004-10-29 16:38:36 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -186,9 +186,9 @@ public class WaveLoader { data_p = 0; return; } - if (iff_chunk_len > 1024*1024) - Sys.Error("FindNextChunk: length is past the 1 meg sanity limit"); - + if (iff_chunk_len > 1024*1024) { + Com.Println(" Warning: FindNextChunk: length is past the 1 meg sanity limit"); + } data_p -= 8; last_chunk = data_p + 8 + ((iff_chunk_len + 1) & ~1); String s = new String(data_b, data_p, 4); |