summaryrefslogtreecommitdiff
path: root/src/maplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
commit767b8400fb086616616a298655f0bc2eaf239256 (patch)
tree9d82215887c79c596127506f50daf2ed31c23d8c /src/maplayer.cpp
parentcd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff)
downloadmanaplus-767b8400fb086616616a298655f0bc2eaf239256.tar.gz
manaplus-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2
manaplus-767b8400fb086616616a298655f0bc2eaf239256.tar.xz
manaplus-767b8400fb086616616a298655f0bc2eaf239256.zip
Fix code style in other files.
Diffstat (limited to 'src/maplayer.cpp')
-rw-r--r--src/maplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/maplayer.cpp b/src/maplayer.cpp
index bfecd90d8..97ecc4f93 100644
--- a/src/maplayer.cpp
+++ b/src/maplayer.cpp
@@ -121,7 +121,7 @@ void MapLayer::draw(Graphics *const graphics,
const int py0 = y32 + dy;
- Image **tilePtr = mTiles + startX + yWidth;
+ Image **tilePtr = mTiles + static_cast<size_t>(startX + yWidth);
for (int x = startX; x < endX; x++, tilePtr++)
{
@@ -217,7 +217,7 @@ void MapLayer::updateSDL(const Graphics *const graphics,
const int yWidth = y * mWidth;
const int py0 = y * mapTileSize + dy;
- Image **tilePtr = mTiles + startX + yWidth;
+ Image **tilePtr = mTiles + static_cast<size_t>(startX + yWidth);
for (int x = startX; x < endX; x++, tilePtr++)
{
@@ -282,7 +282,7 @@ void MapLayer::updateOGL(const Graphics *const graphics,
{
const int yWidth = y * mWidth;
const int py0 = y * mapTileSize + dy;
- Image **tilePtr = mTiles + startX + yWidth;
+ Image **tilePtr = mTiles + static_cast<size_t>(startX + yWidth);
for (int x = startX; x < endX; x++, tilePtr++)
{
Image *const img = *tilePtr;
@@ -437,7 +437,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY,
const int py0 = y32 + dy;
const int py1 = y32 - scrollY;
- Image **tilePtr = mTiles + startX + yWidth;
+ Image **tilePtr = mTiles + static_cast<size_t>(startX + yWidth);
for (int x = startX; x < endX; x++, tilePtr++)
{
const int x32 = x * mapTileSize;