TWINE: Remove unused variable

Thanks to eientei for reporting this
This commit is contained in:
Filippos Karapetis 2021-12-24 03:20:19 +02:00
parent eaf173111c
commit fe66b2e249

View File

@ -201,7 +201,6 @@ void Holomap::prepareHolomapPolygons() {
int holomapSurfaceArrayIdx = 0;
_projectedSurfaceIndex = 0;
for (int32 alpha = -ANGLE_90; alpha <= ANGLE_90; alpha += ANGLE_11_25) {
int rotation = ANGLE_0;
for (int32 beta = 0; beta < ANGLE_11_25; ++beta) {
IVec3 *vec = &_holomapSurface[holomapSurfaceArrayIdx++];
const IVec3 &destPos = _engine->_renderer->getBaseRotationPosition(vec->x, vec->y, vec->z);
@ -213,7 +212,6 @@ void Holomap::prepareHolomapPolygons() {
const IVec3 &projPos = _engine->_renderer->projectPositionOnScreen(destPos);
_projectedSurfacePositions[_projectedSurfaceIndex].x1 = projPos.x;
_projectedSurfacePositions[_projectedSurfaceIndex].y1 = projPos.y;
rotation += ANGLE_11_25;
++_projectedSurfaceIndex;
}
IVec3 *vec = &_holomapSurface[holomapSurfaceArrayIdx++];
@ -221,7 +219,6 @@ void Holomap::prepareHolomapPolygons() {
const IVec3 &projPos = _engine->_renderer->projectPositionOnScreen(destPos);
_projectedSurfacePositions[_projectedSurfaceIndex].x1 = projPos.x;
_projectedSurfacePositions[_projectedSurfaceIndex].y1 = projPos.y;
rotation += ANGLE_11_25;
++_projectedSurfaceIndex;
}
assert(holomapSortArrayIdx == ARRAYSIZE(_holomapSort));