SZ_GetSpace: change overflow Sys_Error to Host_Error

this happens for maps that exceed the signon buffer and makes it a bit less annoying

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1499 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-09-12 23:12:33 +00:00
parent 14e157d051
commit 71d7d02eaf

View file

@ -955,7 +955,7 @@ void *SZ_GetSpace (sizebuf_t *buf, int length)
if (buf->cursize + length > buf->maxsize) if (buf->cursize + length > buf->maxsize)
{ {
if (!buf->allowoverflow) if (!buf->allowoverflow)
Sys_Error ("SZ_GetSpace: overflow without allowoverflow set"); Host_Error ("SZ_GetSpace: overflow without allowoverflow set"); // ericw -- made Host_Error to be less annoying
if (length > buf->maxsize) if (length > buf->maxsize)
Sys_Error ("SZ_GetSpace: %i is > full buffer size", length); Sys_Error ("SZ_GetSpace: %i is > full buffer size", length);