summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-05 22:15:23 +0000
committerDennis Friis <peavey@placid.dk>2008-04-05 22:15:23 +0000
commitf84a74afd7b808756925814d18b8926dbed9c3bd (patch)
tree116b592e580a46b8e64ba238c8985d3800e00991 /src/map
parent91f60199033a61fd5c2fd810d8fcb106449f24e1 (diff)
downloadtmwa-f84a74afd7b808756925814d18b8926dbed9c3bd.tar.gz
tmwa-f84a74afd7b808756925814d18b8926dbed9c3bd.tar.bz2
tmwa-f84a74afd7b808756925814d18b8926dbed9c3bd.tar.xz
tmwa-f84a74afd7b808756925814d18b8926dbed9c3bd.zip
Comment out packet 0x139 (out of reach for attack), since TMW client does not process this but uses own target system. Also, this will save a ton of CPU and NET traffic because fast attack would make the server call the checks and spew this packet out at a big rate.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index f5458e4..067ca35 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4068,8 +4068,8 @@ int pc_attack_timer(int tid,unsigned int tick,int id,int data)
range = sd->attackrange;
if(sd->status.weapon != 11) range++;
if( dist > range ){ // 届 かないので移動
- if(pc_can_reach(sd,bl->x,bl->y))
- clif_movetoattack(sd,bl);
+ //if(pc_can_reach(sd,bl->x,bl->y))
+ //clif_movetoattack(sd,bl);
return 0;
}