summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-03-01 04:06:17 +0000
committerKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-03-01 04:06:17 +0000
commit857794d1c02fd0719634bea9674caa8c76d97007 (patch)
treea8f1a7043935e8429d79d9e96c429fced5507f36 /src/net
parent17de81fb71b4f91d2e0897f802a36df5630f1eaa (diff)
downloadmana-857794d1c02fd0719634bea9674caa8c76d97007.tar.gz
mana-857794d1c02fd0719634bea9674caa8c76d97007.tar.bz2
mana-857794d1c02fd0719634bea9674caa8c76d97007.tar.xz
mana-857794d1c02fd0719634bea9674caa8c76d97007.zip
This is the update for the charge bar. It resets every time an attack message is sent to the server. I still haven't actually worked the timer into this. I'd appreciate it if someone would explain how. Thanks.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/protocol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp
index 40110144..b59a8c68 100644
--- a/src/net/protocol.cpp
+++ b/src/net/protocol.cpp
@@ -235,4 +235,6 @@ void attack(unsigned short x, unsigned short y, unsigned char direction) {
if (monster_id != 0)
action(0, monster_id);
}
+ // implement charging attacks here
+ char_info->lastAttackTime = 0;
}