112 for (entity_num = 0; entity_num <
num_entities; entity_num++) {
113 if (!
entities[entity_num].numbrushes)
123 if (!
config.verboseentities)
void Sys_Error(const char *error,...)
dBspModel_t models[MAX_MAP_MODELS]
void BeginBSPFile(void)
Starts a new bsp file.
void DoRouting(void)
Calculates the routing of a map.
void Com_Printf(const char *const fmt,...)
entity_t entities[MAX_MAP_ENTITIES]
void MarkVisibleSides(tree_t *tree, int start, int end)
bspbrush_t * ChopBrushes(bspbrush_t *head)
Carves any intersecting solid brushes into the minimum number of non-intersecting brushes...
void FreeTree(tree_t *tree)
void expand(const float byVal)
expand the box in all directions, but clip them to the maximum boundaries
tree_t * BuildTree(bspbrush_t *brushlist, const vec3_t mins, const vec3_t maxs)
The incoming list will be freed before exiting.
void BeginModel(int entityNum)
Sets up a new brush model.
#define NUM_REGULAR_MODELS
void ProcessLevelEntityNumber(int entityNumber)
void ProcessLevel(unsigned int levelnum)
process brushes with that level mask
void EndBSPFile(const char *filename)
Finishes a new bsp and writes to disk.
void FixTjuncs(node_t *headnode)
int WriteBSP(node_t *headnode)
copies working data for a bsp tree into the structures used to create the bsp file.
void MakeFaces(node_t *headnode)
void EndModel(void)
Finish a model's processing.
#define MAX_WORLD_WIDTH
-MAX_WORLD_WIDTH up tp +MAX_WORLD_WIDTH
void MakeTreePortals(tree_t *tree)
const char * ValueForKey(const entity_t *ent, const char *key)
bspbrush_t * MakeBspBrushList(int startbrush, int endbrush, int level, const AABB &clip)