Explorar o código

Fixed bugreport:6587 removed unused parameters in several damage/heal functions from minions

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16760 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind %!s(int64=12) %!d(string=hai) anos
pai
achega
68ebc6df19
Modificáronse 7 ficheiros con 12 adicións e 14 borrados
  1. 1 1
      src/map/elemental.c
  2. 1 1
      src/map/elemental.h
  3. 2 4
      src/map/homunculus.c
  4. 2 2
      src/map/homunculus.h
  5. 1 1
      src/map/mercenary.c
  6. 1 1
      src/map/mercenary.h
  7. 4 4
      src/map/status.c

+ 1 - 1
src/map/elemental.c

@@ -457,7 +457,7 @@ int elemental_change_mode(struct elemental_data *ed, int mode) {
 	return 1;
 }
 
-void elemental_damage(struct elemental_data *ed, struct block_list *src, int hp, int sp) {
+void elemental_damage(struct elemental_data *ed, int hp, int sp) {
 	if( hp )
 		clif_elemental_updatestatus(ed->master, SP_HP);
 	if( sp )

+ 1 - 1
src/map/elemental.h

@@ -67,7 +67,7 @@ int elemental_save(struct elemental_data *ed);
 int elemental_change_mode_ack(struct elemental_data *ed, int mode);
 int elemental_change_mode(struct elemental_data *ed, int mode);
 
-void elemental_damage(struct elemental_data *ed, struct block_list *src, int hp, int sp);
+void elemental_damage(struct elemental_data *ed, int hp, int sp);
 void elemental_heal(struct elemental_data *ed, int hp, int sp);
 int elemental_dead(struct elemental_data *ed, struct block_list *src);
 

+ 2 - 4
src/map/homunculus.c

@@ -81,8 +81,7 @@ int hom_class2mapid(int hom_class)
 	}
 }
 
-void merc_damage(struct homun_data *hd,struct block_list *src,int hp,int sp)
-{
+void merc_damage(struct homun_data *hd) {
 	clif_hominfo(hd->master,hd,0);
 }
 
@@ -499,8 +498,7 @@ int merc_hom_decrease_intimacy(struct homun_data * hd, unsigned int value)
 	return hd->homunculus.intimacy;
 }
 
-void merc_hom_heal(struct homun_data *hd,int hp,int sp)
-{
+void merc_hom_heal(struct homun_data *hd) {
 	clif_hominfo(hd->master,hd,0);
 }
 

+ 2 - 2
src/map/homunculus.h

@@ -79,7 +79,7 @@ int do_init_merc(void);
 int merc_hom_recv_data(int account_id, struct s_homunculus *sh, int flag); //albator
 struct view_data* merc_get_hom_viewdata(int class_);
 int hom_class2mapid(int hom_class);
-void merc_damage(struct homun_data *hd,struct block_list *src,int hp,int sp);
+void merc_damage(struct homun_data *hd);
 int merc_hom_dead(struct homun_data *hd, struct block_list *src);
 void merc_hom_skillup(struct homun_data *hd,int skillnum);
 int merc_hom_calc_skilltree(struct homun_data *hd);
@@ -88,7 +88,7 @@ int merc_hom_gainexp(struct homun_data *hd,int exp);
 int merc_hom_levelup(struct homun_data *hd);
 int merc_hom_evolution(struct homun_data *hd);
 int hom_mutate(struct homun_data *hd,int homun_id);
-void merc_hom_heal(struct homun_data *hd,int hp,int sp);
+void merc_hom_heal(struct homun_data *hd);
 int merc_hom_vaporize(struct map_session_data *sd, int flag);
 int merc_resurrect_homunculus(struct map_session_data *sd, unsigned char per, short x, short y);
 void merc_hom_revive(struct homun_data *hd, unsigned int hp, unsigned int sp);

+ 1 - 1
src/map/mercenary.c

@@ -344,7 +344,7 @@ int merc_data_received(struct s_mercenary *merc, bool flag)
 	return 1;
 }
 
-void mercenary_damage(struct mercenary_data *md, struct block_list *src, int hp, int sp)
+void mercenary_damage(struct mercenary_data *md, int hp, int sp)
 {
 	if( hp )
 		clif_mercenary_updatestatus(md->master, SP_HP);

+ 1 - 1
src/map/mercenary.h

@@ -56,7 +56,7 @@ int merc_create(struct map_session_data *sd, int class_, unsigned int lifetime);
 int merc_data_received(struct s_mercenary *merc, bool flag);
 int mercenary_save(struct mercenary_data *md);
 
-void mercenary_damage(struct mercenary_data *md, struct block_list *src, int hp, int sp);
+void mercenary_damage(struct mercenary_data *md, int hp, int sp);
 void mercenary_heal(struct mercenary_data *md, int hp, int sp);
 int mercenary_dead(struct mercenary_data *md, struct block_list *src);
 

+ 4 - 4
src/map/status.c

@@ -1216,9 +1216,9 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s
 	switch (target->type) {
 		case BL_PC:  pc_damage((TBL_PC*)target,src,hp,sp); break;
 		case BL_MOB: mob_damage((TBL_MOB*)target, src, hp); break;
-		case BL_HOM: merc_damage((TBL_HOM*)target,src,hp,sp); break;
-		case BL_MER: mercenary_damage((TBL_MER*)target,src,hp,sp); break;
-		case BL_ELEM: elemental_damage((TBL_ELEM*)target,src,hp,sp); break;
+		case BL_HOM: merc_damage((TBL_HOM*)target); break;
+		case BL_MER: mercenary_damage((TBL_MER*)target,hp,sp); break;
+		case BL_ELEM: elemental_damage((TBL_ELEM*)target,hp,sp); break;
 	}
 
 	if( src && target->type == BL_PC && ((TBL_PC*)target)->disguise ) {// stop walking when attacked in disguise to prevent walk-delay bug
@@ -1379,7 +1379,7 @@ int status_heal(struct block_list *bl,int hp,int sp, int flag)
 	switch(bl->type) {
 	case BL_PC:  pc_heal((TBL_PC*)bl,hp,sp,flag&2?1:0); break;
 	case BL_MOB: mob_heal((TBL_MOB*)bl,hp); break;
-	case BL_HOM: merc_hom_heal((TBL_HOM*)bl,hp,sp); break;
+	case BL_HOM: merc_hom_heal((TBL_HOM*)bl); break;
 	case BL_MER: mercenary_heal((TBL_MER*)bl,hp,sp); break;
 	case BL_ELEM: elemental_heal((TBL_ELEM*)bl,hp,sp); break;
 	}