Skip to content

Commit 79c2af4

Browse files
author
sezero
committed
r1550 merged a bad patch. merging the correct one...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1551 af15c1b1-3010-417e-b628-4374ebc0bcbd
1 parent 12c9571 commit 79c2af4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

quakespasm/Quake/gl_model.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ byte *Mod_DecompressVis (byte *in, qmodel_t *model)
170170
{
171171
if (out == outend)
172172
{
173-
Con_Warning("Mod_DecompressVis: output overrun on model \"%s\"\n", model->name);
173+
if(!model->viswarn) {
174+
model->viswarn = true;
175+
Con_Warning("Mod_DecompressVis: output overrun on model \"%s\"\n", model->name);
176+
}
174177
return mod_decompressed;
175178
}
176179
*out++ = 0;
@@ -768,6 +771,7 @@ Mod_LoadVisibility
768771
*/
769772
void Mod_LoadVisibility (lump_t *l)
770773
{
774+
loadmodel->viswarn = false;
771775
if (!l->filelen)
772776
{
773777
loadmodel->visdata = NULL;

quakespasm/Quake/gl_model.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ typedef struct qmodel_s
480480
byte *lightdata;
481481
char *entities;
482482

483+
qboolean viswarn; // for Mod_DecompressVis()
484+
483485
int bspversion;
484486

485487
//

0 commit comments

Comments
 (0)