r1550 merged a bad patch. merging the correct one...

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1551 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2018-01-08 15:28:05 +00:00
parent a7deed353e
commit 9dd0a76812
2 changed files with 7 additions and 1 deletions

View file

@ -170,7 +170,10 @@ byte *Mod_DecompressVis (byte *in, qmodel_t *model)
{
if (out == outend)
{
Con_Warning("Mod_DecompressVis: output overrun on model \"%s\"\n", model->name);
if(!model->viswarn) {
model->viswarn = true;
Con_Warning("Mod_DecompressVis: output overrun on model \"%s\"\n", model->name);
}
return mod_decompressed;
}
*out++ = 0;
@ -768,6 +771,7 @@ Mod_LoadVisibility
*/
void Mod_LoadVisibility (lump_t *l)
{
loadmodel->viswarn = false;
if (!l->filelen)
{
loadmodel->visdata = NULL;

View file

@ -480,6 +480,8 @@ typedef struct qmodel_s
byte *lightdata;
char *entities;
qboolean viswarn; // for Mod_DecompressVis()
int bspversion;
//