diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-09 16:27:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-09 16:27:05 +0000 |
commit | 2327c5a7c3b054e52b69286da906f8e5c4432d1c (patch) | |
tree | 28a566d4d54b8c046b18f18c1fb592c31f83f5dd /src/game.cpp | |
parent | ff4d98eeee5a5a799039549c6df885a5208b792f (diff) | |
download | mana-2327c5a7c3b054e52b69286da906f8e5c4432d1c.tar.gz mana-2327c5a7c3b054e52b69286da906f8e5c4432d1c.tar.bz2 mana-2327c5a7c3b054e52b69286da906f8e5c4432d1c.tar.xz mana-2327c5a7c3b054e52b69286da906f8e5c4432d1c.zip |
Fixed player names overlapping other players and more cleanups.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 9cac4df0..bc256b7c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -295,7 +295,6 @@ void do_init() player_node = createBeing(account_ID, 0, engine->getCurrentMap()); player_node->x = startX; player_node->y = startY; - player_node->speed = 150; player_node->setHairColor(player_info->hairColor); player_node->setHairStyle(player_info->hairStyle); @@ -1095,7 +1094,7 @@ void do_parse() // Prevent division by 0 when calculating frame if (speed == 0) { speed = 150; } - being->speed = speed; + being->setWalkSpeed(speed); being->job = job; being->setHairStyle(msg.readShort()); being->setWeapon(msg.readShort()); @@ -1194,7 +1193,7 @@ void do_parse() being = createBeing(id, job, tiledMap); } - being->speed = speed; + being->setWalkSpeed(speed); being->job = job; being->setHairStyle(msg.readShort()); being->setWeaponById(msg.readShort()); // item id 1 @@ -1524,7 +1523,7 @@ void do_parse() switch (type) { //case 0x0000: - // player_node->speed = msg.readLong(); + // player_node->setWalkSpeed(msg.readLong()); // break; case 0x0005: player_info->hp = value; break; case 0x0006: player_info->maxHp = value; break; |