diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-26 02:48:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-26 02:48:32 +0300 |
commit | ab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch) | |
tree | ac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/flooritem.cpp | |
parent | 399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff) | |
download | plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2 plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz plus-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip |
Add const to some classes.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r-- | src/flooritem.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp index f612713da..7826f7855 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -34,8 +34,10 @@ #include "debug.h" -FloorItem::FloorItem(int id, int itemId, int x, int y, Map *map, int amount, - unsigned char color, int subX, int subY): +FloorItem::FloorItem(const int id, const int itemId, const int x, const int y, + Map *const map, const int amount, + const unsigned char color, + int subX, int subY): ActorSprite(id), mItemId(itemId), mX(x), @@ -52,7 +54,7 @@ FloorItem::FloorItem(int id, int itemId, int x, int y, Map *map, int amount, const ItemInfo &info = ItemDB::get(itemId); if (map) { - int max = info.getMaxFloorOffset(); + const int max = info.getMaxFloorOffset(); if (subX > max) subX = max; else if (subX < -max) @@ -100,7 +102,7 @@ bool FloorItem::draw(Graphics *graphics, int offsetX, int offsetY) const if (mHighlight) { - int curTime = cur_time; + const int curTime = cur_time; font = gui->getFont(); if (mDropTime < curTime) { |