Log an error in the room check process
| 2099 | |
| 2100 | // Log an error in the room check process |
| 2101 | void 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 |
no test coverage detected