diff options
author | vittorioromeo <vittorio.romeo@outlook.com> | 2023-04-21 10:55:48 +0100 |
---|---|---|
committer | vittorioromeo <vittorio.romeo@outlook.com> | 2023-04-21 10:55:48 +0100 |
commit | 1e2cba71242ab149d548abdb54d3bceb92c33922 (patch) | |
tree | e7383659b3876d598351c669d81ebb41ec7544be | |
parent | 27112a568348798bf2609a2e38039a4da4e91634 (diff) |
-rw-r--r-- | src/SSVOpenHexagon/Core/CCustomWallManager.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/SSVOpenHexagon/Core/CCustomWallManager.cpp b/src/SSVOpenHexagon/Core/CCustomWallManager.cpp index 33faf39a..5fd56a66 100644 --- a/src/SSVOpenHexagon/Core/CCustomWallManager.cpp +++ b/src/SSVOpenHexagon/Core/CCustomWallManager.cpp @@ -4,6 +4,7 @@ #include "SSVOpenHexagon/Components/CCustomWallManager.hpp" +#include "SSVOpenHexagon/Components/CCustomWall.hpp" #include "SSVOpenHexagon/Global/Assert.hpp" #include "SSVOpenHexagon/Components/CPlayer.hpp" @@ -272,10 +273,11 @@ void CCustomWallManager::setVertexPos4(const CCustomWallHandle cwHandle, return; } - _customWalls[cwHandle].setVertexPos(0, p0); - _customWalls[cwHandle].setVertexPos(1, p1); - _customWalls[cwHandle].setVertexPos(2, p2); - _customWalls[cwHandle].setVertexPos(3, p3); + CCustomWall& customWall = _customWalls[cwHandle]; + customWall.setVertexPos(0, p0); + customWall.setVertexPos(1, p1); + customWall.setVertexPos(2, p2); + customWall.setVertexPos(3, p3); } void CCustomWallManager::setVertexColor4(const CCustomWallHandle cwHandle, @@ -287,10 +289,11 @@ void CCustomWallManager::setVertexColor4(const CCustomWallHandle cwHandle, return; } - _customWalls[cwHandle].setVertexColor(0, c0); - _customWalls[cwHandle].setVertexColor(1, c1); - _customWalls[cwHandle].setVertexColor(2, c2); - _customWalls[cwHandle].setVertexColor(3, c3); + CCustomWall& customWall = _customWalls[cwHandle]; + customWall.setVertexColor(0, c0); + customWall.setVertexColor(1, c1); + customWall.setVertexColor(2, c2); + customWall.setVertexColor(3, c3); } void CCustomWallManager::setVertexColor4Same( @@ -301,10 +304,11 @@ void CCustomWallManager::setVertexColor4Same( return; } - _customWalls[cwHandle].setVertexColor(0, color); - _customWalls[cwHandle].setVertexColor(1, color); - _customWalls[cwHandle].setVertexColor(2, color); - _customWalls[cwHandle].setVertexColor(3, color); + CCustomWall& customWall = _customWalls[cwHandle]; + customWall.setVertexColor(0, color); + customWall.setVertexColor(1, color); + customWall.setVertexColor(2, color); + customWall.setVertexColor(3, color); } void CCustomWallManager::clear() |