qbsp: write .prt files in text mode for TB compatibility

This commit is contained in:
Eric Wasylishen 2022-12-09 22:54:56 -07:00
parent 24f79d13bb
commit e7b20733d3
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ static void WritePortalfile(node_t *headnode, portal_state_t &state)
fs::path name = qbsp_options.bsp_path; fs::path name = qbsp_options.bsp_path;
name.replace_extension("prt"); name.replace_extension("prt");
std::ofstream portalFile(name, std::ios_base::binary | std::ios_base::out); std::ofstream portalFile(name, std::ios_base::out);
if (!portalFile) if (!portalFile)
FError("Failed to open {}: {}", name, strerror(errno)); FError("Failed to open {}: {}", name, strerror(errno));