summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-10 22:16:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-10 22:16:14 +0000
commit627d4d27d594fb7356c3d4e9f4cb45eff77c1e48 (patch)
tree8ef849bef7fd774b61057f563fc06fc1180ed8b0 /src/being.cpp
parent863f3f15f091378c762c0a6f8f30b8f33bb399e4 (diff)
downloadmana-client-627d4d27d594fb7356c3d4e9f4cb45eff77c1e48.tar.gz
mana-client-627d4d27d594fb7356c3d4e9f4cb45eff77c1e48.tar.bz2
mana-client-627d4d27d594fb7356c3d4e9f4cb45eff77c1e48.tar.xz
mana-client-627d4d27d594fb7356c3d4e9f4cb45eff77c1e48.zip
Fixed showing death bitmap when other players die and fixed the black hair
problem.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 6e026a6b..8de5125c 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -29,10 +29,8 @@ Being *player_node = NULL;
std::list<Being*> beings;
PATH_NODE::PATH_NODE(unsigned short x, unsigned short y):
- next(NULL)
+ x(x), y(y), next(NULL)
{
- this->x = x;
- this->y = y;
}
void empty() {
@@ -109,17 +107,19 @@ void sort() {
beings.sort(BeingCompare());
}
-Being::Being() {
- id = 0; job = 0;
- action = 0; frame = 0;
- path = NULL; speech = NULL; speech_time = 0;
- walk_time = 0; speed = 150;
- emotion = 0; emotion_time = 0;
- text_x = 0; text_y = 0;
- hair_style = 1; hair_color = 1;
- weapon = 0;
- x = 0; y = 0; direction = 0;
- speech_color = 0;//makecol(0, 0, 0);
+Being::Being():
+ path(NULL),
+ id(0), job(0),
+ x(0), y(0), destX(0), destY(0), direction(0),
+ type(0), action(0), frame(0),
+ speech(NULL), speech_time(0), speech_color(0),
+ walk_time(0),
+ speed(150),
+ emotion(0), emotion_time(0),
+ text_x(0), text_y(0),
+ hair_style(1), hair_color(1),
+ weapon(0)
+{
}
Being::~Being() {