1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282)

* Code modernization: src/p*, src/q*, src/r*, src/s* (partial)

* empty function
* default constructor/destructor
* for range-based loops
* use emplace_back instead of push_back
* C++ STL header style
* Spelling: vertice -> vertex
This commit is contained in:
Loïc Blot 2017-08-19 14:25:35 +02:00 committed by GitHub
parent 1992db1395
commit 7528986e44
28 changed files with 363 additions and 443 deletions

View file

@ -397,15 +397,15 @@ void transformNodeBox(const MapNode &n, const NodeBox &nodebox,
nodebox.wall_side.MaxEdge
};
for (v3f &vertice : vertices) {
for (v3f &vertex : vertices) {
if(dir == v3s16(-1,0,0))
vertice.rotateXZBy(0);
vertex.rotateXZBy(0);
if(dir == v3s16(1,0,0))
vertice.rotateXZBy(180);
vertex.rotateXZBy(180);
if(dir == v3s16(0,0,-1))
vertice.rotateXZBy(90);
vertex.rotateXZBy(90);
if(dir == v3s16(0,0,1))
vertice.rotateXZBy(-90);
vertex.rotateXZBy(-90);
}
aabb3f box = aabb3f(vertices[0]);