#include "../common/shared.h"
#include "../ufo2map.h"
#include "checklib.h"
#include "../../../shared/entitiesdef.h"
#include "../bsp.h"
#include "check.h"
Go to the source code of this file.
Functions | |
void | Check_Printf (verbosityLevel_t msgVerbLevel, qboolean change, int entnum, int brushnum, const char *format,...) |
decides wether to proceed with output based on verbosity and ufo2map's mode: check/fix/compile | |
void | Check_InitEntityDefs (void) |
void | Check_Free (void) |
free the mapbrush_t::nearBrushes, compositeSides and entitiesdef.h stuff. |
functions for check.c
Definition in file checklib.c.
void Check_Free | ( | void | ) |
free the mapbrush_t::nearBrushes, compositeSides and entitiesdef.h stuff.
Definition at line 152 of file checklib.c.
References compositeSides, ED_Free(), i, mapbrushes, Mem_Free, compositeSide_s::memberSides, mapbrush_s::nearBrushes, numCompositeSides, nummapbrushes, compositeSide_s::numMembers, and mapbrush_s::numNear.
Referenced by main().
void Check_InitEntityDefs | ( | void | ) |
Definition at line 130 of file checklib.c.
References byte, ED_ERROR, ED_GetLastError(), ED_Parse(), FS_LoadFile(), Mem_Free, numEntityDefs, and Sys_Error().
Referenced by Check_Stats(), and CheckEntities().
void Check_Printf | ( | verbosityLevel_t | msgVerbLevel, | |
qboolean | change, | |||
int | entnum, | |||
int | brushnum, | |||
const char * | format, | |||
... | ||||
) |
decides wether to proceed with output based on verbosity and ufo2map's mode: check/fix/compile
change | true if there will an automatic change on -fix | |
brushnum | the brush that the report is about. send NUM_NONE, if the report only regards an entity | |
entnum | the entity the brush is from.send NUM_NONE if the report is a summary, not regarding a specific entity or brush |
Definition at line 48 of file checklib.c.
References AbortPrint(), config, NUM_NONE, NUM_SAME, PrintMapName(), Q_vsnprintf(), qfalse, qtrue, VERB_MAPNAME, and VERB_NORMAL.
Referenced by Check_BrushIntersection(), Check_ContainedBrushes(), Check_DuplicateBrushPlanes(), Check_EntityWithBrushes(), Check_FindCompositeSides(), Check_SidesOverlap(), CheckBrushes(), CheckEntities(), CheckFillLevelFlags(), CheckLevelFlags(), CheckMapMicro(), CheckMixedFaceContents(), CheckNodraws(), CheckPropagateParserContentFlags(), CheckTexturesBasedOnFlags(), CheckZFighting(), DisplayContentFlags(), and SetImpliedFlags().