mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
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:
parent
14e157d051
commit
71d7d02eaf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue