summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-17 22:38:25 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-17 22:38:25 +0000
commit43e00cf6174ca30c6c702b59b5a1434dd1c5ce33 (patch)
tree86335f884d5f471f880753fa99cd4c7e6b8fbed6 /src/map/clif.c
parent73c59399d732b6d5c88ccbf4fcb9ced38e777aca (diff)
downloadhercules-43e00cf6174ca30c6c702b59b5a1434dd1c5ce33.tar.gz
hercules-43e00cf6174ca30c6c702b59b5a1434dd1c5ce33.tar.bz2
hercules-43e00cf6174ca30c6c702b59b5a1434dd1c5ce33.tar.xz
hercules-43e00cf6174ca30c6c702b59b5a1434dd1c5ce33.zip
- Corrected map_random_dir algorithm
- Fixed homunc natural heal and little code cleanup git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8327 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 4a2c63fca..0a2b995b9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1511,7 +1511,7 @@ void clif_send_homdata(struct map_session_data *sd, int type, int param) { //[or
int clif_homskillinfoblock(struct map_session_data *sd) { //[orn]
int fd;
- int i,j,c,len=4,id/*, inf2*/;
+ int i,j,len=4,id/*, inf2*/;
nullpo_retr(0, sd);
nullpo_retr(0, sd->hd);
@@ -1521,7 +1521,7 @@ int clif_homskillinfoblock(struct map_session_data *sd) { //[orn]
fd=sd->fd;
WFIFOW(fd,0)=0x235;
- for ( i = c = 0; i < MAX_HOMUNSKILL; i++){
+ for ( i = 0; i < MAX_HOMUNSKILL; i++){
if( (id = sd->homunculus.hskill[i].id) != 0 ){
j = id - HM_SKILLBASE - 1 ;
WFIFOW(fd,len ) = id ;
@@ -1533,7 +1533,6 @@ int clif_homskillinfoblock(struct map_session_data *sd) { //[orn]
strncpy(WFIFOP(fd,len+12), skill_get_name(id), NAME_LENGTH) ;
WFIFOB(fd,len+36) = (sd->homunculus.hskill[j].lv < merc_skill_tree_get_max(id, sd->homunculus.class_))?1:0;
len+=37;
- c++;
}
}
WFIFOW(fd,2)=len;
@@ -1558,7 +1557,7 @@ void clif_homskillup(struct map_session_data *sd, int skill_num) { //[orn]
range = status_get_range(&sd->bl) - (range + 1);
WFIFOW(fd,8) = range;
WFIFOB(fd,10) = (sd->homunculus.hskill[skillid].lv < skill_get_max(sd->homunculus.hskill[skillid].id)) ? 1 : 0;
- WFIFOSET(fd,packet_len_table[0x10e]);
+ WFIFOSET(fd,packet_len_table[0x239]);
return;
}