summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-06 00:39:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-06 23:06:15 +0300
commit6b291b6515825f4ce0e09df5dec7ea1b619b63a7 (patch)
treef26a35a21cde34f45538a191b2196bf7c81d2693 /src/map.cpp
parent833e498f54c1d33be94c09214315b368cccaec06 (diff)
downloadplus-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.tar.gz
plus-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.tar.bz2
plus-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.tar.xz
plus-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.zip
improve a bit different code.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 70a48b811..c86c51bce 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -381,13 +381,9 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
// Make sure actors are sorted ascending by Y-coordinate
// so that they overlap correctly
-// if (mSpritesUpdated)
-// {
BLOCK_START("Map::draw sort")
mActors.sort(actorCompare);
BLOCK_END("Map::draw sort")
-// mSpritesUpdated = false;
-// }
// update scrolling of all ambient layers
updateAmbientLayers(static_cast<float>(scrollX),
@@ -480,15 +476,6 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
else
#endif
{
-/*
- if (updateFlag)
- {
- (*layeri)->updateSDL(graphics, startX, startY,
- endX, endY, scrollX, scrollY, mDebugFlags);
- }
-
- (*layeri)->drawSDL(graphics);
-*/
layer->draw(graphics, startX, startY, endX, endY,
scrollX, scrollY, mDebugFlags);
}