X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_draw.c;h=d1dbbf4a27b75641411fa97df2d4024e3ee3ff6e;hp=b3e48111c5d9637a35f2321e0078f92b07162b46;hb=95e0893e5dec7501a4ff07d7522dd4ce24b645aa;hpb=ac21931f61d9150e0f3f36afed4dd3258e6cf0ec diff --git a/gl_draw.c b/gl_draw.c index b3e48111..d1dbbf4a 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -38,7 +38,7 @@ static int numcachepics; static rtexturepool_t *drawtexturepool; -static qbyte concharimage[13396] = +static qbyte concharimage[13468] = { #include "lhfont.h" }; @@ -310,7 +310,11 @@ cachepic_t *Draw_CachePic (const char *path, qboolean persistent) return pic; if (numcachepics == MAX_CACHED_PICS) - Sys_Error ("numcachepics == MAX_CACHED_PICS"); + { + Con_Printf ("Draw_CachePic: numcachepics == MAX_CACHED_PICS"); + // FIXME: support NULL in callers? + return cachepics; // return the first one + } pic = cachepics + (numcachepics++); strlcpy (pic->name, path, sizeof(pic->name)); // link into list @@ -400,7 +404,11 @@ cachepic_t *Draw_NewPic(const char *picname, int width, int height, int alpha, q if (pic == NULL) { if (numcachepics == MAX_CACHED_PICS) - Sys_Error ("numcachepics == MAX_CACHED_PICS"); + { + Con_Printf ("Draw_NewPic: numcachepics == MAX_CACHED_PICS"); + // FIXME: support NULL in callers? + return cachepics; // return the first one + } pic = cachepics + (numcachepics++); strcpy (pic->name, picname); // link into list