summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-31 17:34:35 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-31 17:56:17 +0200
commitc6380acb33a7414c2abe968a8bd056fae93dd10a (patch)
treee3237080c15d7a3b4607ab9a770dce4a0c283fb8 /src/map.cpp
parent7a178f6d257a2241d3400271d20eb2b902fdab37 (diff)
downloadmana-client-c6380acb33a7414c2abe968a8bd056fae93dd10a.tar.gz
mana-client-c6380acb33a7414c2abe968a8bd056fae93dd10a.tar.bz2
mana-client-c6380acb33a7414c2abe968a8bd056fae93dd10a.tar.xz
mana-client-c6380acb33a7414c2abe968a8bd056fae93dd10a.zip
Removed 'virtual' from methods of Image
Maybe it used to be necessary for these methods to be virtual, but this is no longer the case. Hence we can avoid wasting CPU ticks searching through virtual function tables, especially for frequently used methods like getWidth, getHeight and setAlpha. MapLayer::getTile was inlined.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 9736e527..b9bcb284 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -116,11 +116,6 @@ void MapLayer::setTile(int x, int y, Image *img)
setTile(x + y * mWidth, img);
}
-Image* MapLayer::getTile(int x, int y) const
-{
- return mTiles[x + y * mWidth];
-}
-
void MapLayer::draw(Graphics *graphics,
int startX, int startY,
int endX, int endY,