MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CheckError

Function CheckError

editor/Erooms.cpp:2101–2113  ·  view source on GitHub ↗

Log an error in the room check process

Source from the content-addressed store, hash-verified

2099
2100// Log an error in the room check process
2101void CheckError(const char *str, ...) {
2102 std::va_list arglist;
2103 int nchars;
2104
2105 va_start(arglist, str);
2106 nchars = std::vsnprintf(error_buf + error_buf_offset, BUF_LEN - error_buf_offset, str, arglist);
2107 va_end(arglist);
2108
2109 error_buf_offset += strlen(error_buf + error_buf_offset);
2110
2111 if (error_buf_offset >= BUF_LEN)
2112 OutrageMessageBox("There has been a text buffer overflow in CheckError().");
2113}
2114
2115// Checks the normals in a room
2116// Returns the number of bad normals

Callers 15

CheckNormalsFunction · 0.85
CheckConcaveFacesFunction · 0.85
CheckDegenerateFacesFunction · 0.85
CheckPortalFunction · 0.85
CheckPortalsFunction · 0.85
CheckDuplicateFacesFunction · 0.85
CheckNonPlanarFacesFunction · 0.85
CheckDuplicatePointsFunction · 0.85
CheckUnusedPointsFunction · 0.85
CheckDuplicateFacePointsFunction · 0.85
CheckPortalFacesFunction · 0.85
FindTJointsFunction · 0.85

Calls 1

OutrageMessageBoxFunction · 0.85

Tested by

no test coverage detected