summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-11 19:15:09 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-11 19:15:09 +0000
commitf51f782e5212c26256e07a91af1ec3adc9138525 (patch)
tree9838e3a8a8db53054345c246c9c0c589003c7f28 /src
parentfae72b4af815724d6bd3f357f11f6a159c054d02 (diff)
downloadmana-client-f51f782e5212c26256e07a91af1ec3adc9138525.tar.gz
mana-client-f51f782e5212c26256e07a91af1ec3adc9138525.tar.bz2
mana-client-f51f782e5212c26256e07a91af1ec3adc9138525.tar.xz
mana-client-f51f782e5212c26256e07a91af1ec3adc9138525.zip
Fixed it bjørns way and corrected the date in the changelog.
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 3206a218..575f80d3 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -147,10 +147,10 @@ Map::draw(Graphics *graphics, int scrollX, int scrollY, int layer)
if (startX < 0) startX = 0;
if (startY < 0) startY = 0;
- if (endX >= mWidth) endX = mWidth - 1;
- if (endY >= mHeight) endY = mHeight - 1;
+ if (endX >= mWidth) endX = mWidth;
+ if (endY >= mHeight) endY = mHeight;
- for (int y = startY; y <= endY; y++)
+ for (int y = startY; y < endY; y++)
{
// If drawing the fringe layer, make sure all sprites above this row of
// tiles have been drawn
@@ -163,7 +163,7 @@ Map::draw(Graphics *graphics, int scrollX, int scrollY, int layer)
}
}
- for (int x = startX; x <= endX; x++)
+ for (int x = startX; x < endX; x++)
{
Image *img = getTile(x, y, layer);
if (img) {