Allow up to 64 faces on a brush.

This is temporary until unlimited faces can be supported, but it's
sufficient to load mappi.map.
This commit is contained in:
Bill Currie 2011-03-29 12:46:49 +09:00
parent 1911cc1472
commit 2bddcefafe
2 changed files with 5 additions and 1 deletions

View file

@ -8,7 +8,7 @@
#include "TexturePalette.h"
#define MAX_FACES 16
#define MAX_FACES 64
typedef struct {
int numpoints;

View file

@ -685,6 +685,10 @@ ParseVerts (script_t *script, int *n_verts)
}
do {
if (f - faces >= MAX_FACES) {
printf ("%s:%d: too many faces\n", script->file, script->line);
abort ();
}
if (!Script_GetToken (script, true))
break;
if (!strcmp (Script_Token (script), "}"))