diff options
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r-- | src/net/protocol.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp index 4b94a66c..0187f69e 100644 --- a/src/net/protocol.cpp +++ b/src/net/protocol.cpp @@ -241,14 +241,15 @@ int attack(unsigned short x, unsigned short y, unsigned char direction) attack(target); return target->id; } - + // Implement charging attacks here char_info->lastAttackTime = 0; - + return 0; } -void attack(Being *target) { +void attack(Being *target) +{ int dist_x = target->x - player_node->x; int dist_y = target->y - player_node->y; if (abs(dist_y) >= abs(dist_x)) { |