mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
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:
parent
a7deed353e
commit
9dd0a76812
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -480,6 +480,8 @@ typedef struct qmodel_s
|
|||
byte *lightdata;
|
||||
char *entities;
|
||||
|
||||
qboolean viswarn; // for Mod_DecompressVis()
|
||||
|
||||
int bspversion;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue