mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
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:
parent
1911cc1472
commit
2bddcefafe
2 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "TexturePalette.h"
|
||||
|
||||
#define MAX_FACES 16
|
||||
#define MAX_FACES 64
|
||||
|
||||
typedef struct {
|
||||
int numpoints;
|
||||
|
|
|
@ -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), "}"))
|
||||
|
|
Loading…
Reference in a new issue