summaryrefslogtreecommitdiff
path: root/src/imageparticle.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 18:54:04 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 18:57:04 +0100
commit4b70908a529317ce4e57448fe4f4a59e75416537 (patch)
treea041eeed198708bf5f558f595f716c7814961daf /src/imageparticle.cpp
parent372f6493d07cbffb601ecb775ebecd51267725cf (diff)
downloadmana-4b70908a529317ce4e57448fe4f4a59e75416537.tar.gz
mana-4b70908a529317ce4e57448fe4f4a59e75416537.tar.bz2
mana-4b70908a529317ce4e57448fe4f4a59e75416537.tar.xz
mana-4b70908a529317ce4e57448fe4f4a59e75416537.zip
Fixed inventory window. Not resizable though.
Resizing of the inventory window may come back later. Also did some more code cleanups, moving defines to enums, getting rid of eAthena-specific offset handling (to be done in the network layer), etc. Mantis-issue: 666
Diffstat (limited to 'src/imageparticle.cpp')
-rw-r--r--src/imageparticle.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/imageparticle.cpp b/src/imageparticle.cpp
index 557b3553..865c3046 100644
--- a/src/imageparticle.cpp
+++ b/src/imageparticle.cpp
@@ -19,21 +19,24 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "graphics.h"
#include "imageparticle.h"
+#include "graphics.h"
+
#include "resources/image.h"
ImageParticle::ImageParticle(Map *map, Image *image):
Particle(map),
mImage(image)
{
- if (mImage) mImage->incRef();
+ if (mImage)
+ mImage->incRef();
}
ImageParticle::~ImageParticle()
{
- if (mImage) mImage->decRef();
+ if (mImage)
+ mImage->decRef();
}
void ImageParticle::draw(Graphics *graphics, int offsetX, int offsetY) const