From 914d3de7c324cb1ec456892702689718352a7842 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 17 Jun 2011 16:46:06 +0200 Subject: First pass on removing tile hard coded values. Every files has been checked against the hard coded 32 values except the map.cpp file. I also added convenience functions in the Game class, centralized the default item icon size, and removed two unused defines in being.cpp. --- src/being.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index d9180bc9..69c233f2 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -27,6 +27,7 @@ #include "configuration.h" #include "effectmanager.h" #include "event.h" +#include "game.h" #include "graphics.h" #include "guild.h" #include "localplayer.h" @@ -67,8 +68,6 @@ #define HAIR_FILE "hair.xml" -static const int DEFAULT_BEING_WIDTH = 32; -static const int DEFAULT_BEING_HEIGHT = 32; int Being::mNumberOfHairstyles = 1; Being::Being(int id, Type type, int subtype, Map *map): @@ -592,7 +591,8 @@ void Being::fireMissile(Being *victim, const std::string &particle) if (missile) { Particle *target = particleEngine->createChild(); - target->moveBy(Vector(0.0f, 0.0f, 32.0f)); + target->moveBy(Vector(0.0f, 0.0f, + Game::instance()->getCurrentTileWidth())); target->setLifetime(1000); victim->controlParticle(target); -- cgit v1.2.3-70-g09d2