diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/being.cpp b/src/being.cpp index 98f19748..04a07152 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -21,18 +21,25 @@ * $Id$ */ -#include <sstream> +#include "being.h" + #include <iostream> +#include <sstream> -#include "being.h" -#include "log.h" #include "game.h" -#include "net/protocol.h" -#include "net/network.h" -#include "resources/resourcemanager.h" +#include "graphics.h" +#include "log.h" +#include "map.h" + #include "graphic/spriteset.h" + #include "gui/gui.h" +#include "net/network.h" +#include "net/protocol.h" + +#include "resources/resourcemanager.h" + extern Being* autoTarget; extern std::map<int, Spriteset*> monsterset; @@ -139,7 +146,7 @@ void sort() { Being::Being(): job(0), - x(0), y(0), direction(0), + x(0), y(0), direction(SOUTH), action(0), frame(0), speech_color(0), walk_time(0), @@ -250,7 +257,6 @@ void Being::nextStep() int oldY = y; int newX = node.x; int newY = node.y; - direction = 0; if (newX > oldX) { if (newY > oldY) direction = SE; |