summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-06-30 21:18:25 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-06-30 21:18:25 +0000
commit004cec89e306744b3079e72fdb1866579d4b3a26 (patch)
treed70ba97701078b0ca19692dcc2771d0d4608c448
parentaaff5572f054045ecd4dd94ccdc2caac71132ad4 (diff)
downloadmana-004cec89e306744b3079e72fdb1866579d4b3a26.tar.gz
mana-004cec89e306744b3079e72fdb1866579d4b3a26.tar.bz2
mana-004cec89e306744b3079e72fdb1866579d4b3a26.tar.xz
mana-004cec89e306744b3079e72fdb1866579d4b3a26.zip
Improved attack frames management (now you can see other players
attacking better than before) NOTE: the protocol doesn't allow for better management.
-rw-r--r--src/game.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 6927ee18..b53df444 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1203,11 +1203,15 @@ void do_parse()
if (RFIFOL(2) != player_node->id) { // buggy
being = findNode(RFIFOL(2));
if (being != NULL) {
- if (being->job<10) {
+ if (being->isPlayer()) {
being->action = ATTACK;
+ being->frame = 0;
+ being->walk_time = tick_time;
}
else {
being->action = MONSTER_ATTACK;
+ being->frame = 0;
+ being->walk_time = tick_time;
}
being->frame = 0;
}