From 178bfb577dabe641843b79df501208787cb65d85 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Tue, 17 Nov 2020 20:21:59 +0100 Subject: [PATCH] TWINE: removed unused return value --- engines/twine/grid.cpp | 10 +++++----- engines/twine/grid.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/twine/grid.cpp b/engines/twine/grid.cpp index 040d1047ec2..512e9d37bb6 100644 --- a/engines/twine/grid.cpp +++ b/engines/twine/grid.cpp @@ -268,7 +268,7 @@ void Grid::getSpriteSize(int32 offset, int32 *width, int32 *height, const uint8 *height = *(spritePtr + 1); } -int32 Grid::loadGridBricks(int32 gridSize) { +void Grid::loadGridBricks(int32 gridSize) { uint32 firstBrick = 60000; uint32 lastBrick = 0; uint32 currentBllEntryIdx = 0; @@ -303,11 +303,13 @@ int32 Grid::loadGridBricks(int32 gridSize) { if (brickIdx) { brickIdx--; - if (brickIdx <= firstBrick) + if (brickIdx <= firstBrick) { firstBrick = brickIdx; + } - if (brickIdx > lastBrick) + if (brickIdx > lastBrick) { lastBrick = brickIdx; + } brickUsageTable[brickIdx] = 1; } @@ -326,8 +328,6 @@ int32 Grid::loadGridBricks(int32 gridSize) { warning("Failed to load isometric brick index %i", i); } } - - return 1; } void Grid::createGridColumn(const uint8 *gridEntry, uint32 gridEntrySize, uint8 *dest, uint32 destSize) { diff --git a/engines/twine/grid.h b/engines/twine/grid.h index a133cd519c7..65c24678390 100644 --- a/engines/twine/grid.h +++ b/engines/twine/grid.h @@ -116,7 +116,7 @@ private: * @param gridSize size of the current grid * @return true if everything went ok */ - int32 loadGridBricks(int32 gridSize); + void loadGridBricks(int32 gridSize); /** Create grid masks to allow display actors over the bricks */ void createGridMask(); /**