Skip to content

Commit 077188c

Browse files
authored
Merge pull request #267 from sprunk/patch-15
fix a grass-related message
2 parents 4d24975 + a0f5619 commit 077188c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rts/Rendering/Env/GrassDrawer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ CGrassDrawer::CGrassDrawer()
206206
if (grassbm.width != mapDims.mapx / grassSquareSize || grassbm.height != mapDims.mapy / grassSquareSize) {
207207
char b[128];
208208
SNPRINTF(b, sizeof(b), "grass-map has wrong size (%dx%d, should be %dx%d)\n",
209-
grassbm.width, grassbm.height, mapDims.mapx / 4, mapDims.mapy / 4);
209+
grassbm.width, grassbm.height, mapDims.mapx / grassSquareSize, mapDims.mapy / grassSquareSize);
210210
throw std::runtime_error(b);
211211
}
212212
const int grassMapSize = mapDims.mapx * mapDims.mapy / (grassSquareSize * grassSquareSize);

0 commit comments

Comments
 (0)