1
This commit is contained in:
parent
5a4c4b6e75
commit
de502ff2f2
@ -801,10 +801,16 @@ void MapInstance::LoadHouse()
|
||||
HouseInfo p;
|
||||
p.node = node;
|
||||
{
|
||||
for (auto& point : new_points) {
|
||||
p.verts.push_back(point.x);
|
||||
p.verts.push_back(point.y);
|
||||
p.verts.push_back(point.z);
|
||||
for (size_t i = 0; i < new_points.size(); ++i) {
|
||||
const auto& point = new_points[i];
|
||||
if (i >= 4) {
|
||||
p.verts.push_back(point.x);
|
||||
p.verts.push_back(point.y);
|
||||
p.verts.push_back(point.z);
|
||||
}
|
||||
}
|
||||
if (p.verts.size() != 3 * 4) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
houses_.push_back(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user