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