Individual entity-brush conversion working, parsing error in NetRadiant
This commit is contained in:
parent
0e214e5955
commit
728f6fba8b
@ -58,7 +58,7 @@ void write(const vector<string> &entity,
|
||||
if (brushent) {
|
||||
// entity.begin() + i = vector that begins with KEYWORD_BRUSH
|
||||
// parsing functions will expect only the contents underneath the keyword.
|
||||
move((entity.begin() + (i + 1)), entity.end(), brush.begin());
|
||||
move((entity.begin() + i), entity.end(), brush.begin());
|
||||
}
|
||||
vector<string> converted = e.convert(entity);
|
||||
if (converted.empty()) {
|
||||
@ -72,7 +72,7 @@ void write(const vector<string> &entity,
|
||||
stringstream ss;
|
||||
string line;
|
||||
copy(brush.begin(), brush.end(), ostream_iterator<string>(ss, "\n"));
|
||||
getline(ss, line);
|
||||
getline(ss, line); // this both discards the brush keyboard and prevents a crash
|
||||
write(parse_brush<stringstream>(ss), fo, b);
|
||||
}
|
||||
fo << "}" << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user